1. 程式人生 > >CS1:Server 2003 文件路徑過長導致最末文件夾權限無法繼承上層文件夾權限

CS1:Server 2003 文件路徑過長導致最末文件夾權限無法繼承上層文件夾權限

需要 cto folder 用戶組 路徑 賬戶 用戶 文件夾權限 sub

客戶問題概括:

在Win 2003 服務器上客戶訪問本地一些目錄的文件提示拒絕訪問。

客戶已發現嘗試對相關文件owner更改為當前登錄用戶或者本地管理員用戶組成員,然後添加本地管理員組為此文件無安全控制權限即可訪問此文件。

客戶要求需要用一種命令行方式對有問題的目錄下所有文件或目錄進行上述問題的更改,以達到可以正常訪問文件目的。

解決方法:
使用subinacl 命令行工具來進行相應操作即可。

1.下載subinacl工具。
2.使用subinacl進行相應權限的更改。

舉例:C:\errFolder 更改為本地管理員賬戶完全訪問,subinacl所在目錄為c:\tempFolder.
命令如下:

subinacl.exe /outputlog=c:\tempFolder\logs.txt /errorlog=c:\tempFolder\err.log /verbose /subdirectories “c:\errfolder” /owner=”administrators”

subinacl.exe /outputlog=c:\tempFolder\logs.txt /errorlog=c:\tempFolder\err.log /verbose /subdirectories=filesonly “c:\errfolder*.” /owner=” administrators”
subinacl.exe /outputlog=c:\tempFolder\logs.txt /errorlog=c:\tempFolder\err.log /verbose /subdirectories “c:\errfolder” /grant=”administrators”=F
subinacl.exe /outputlog=c:\tempFolder\logs.txt /errorlog=c:\tempFolder\err.log /verbose /subdirectories=filesonly “c:\errfolder*.
” /grant=”administrators”=F

CS1:Server 2003 文件路徑過長導致最末文件夾權限無法繼承上層文件夾權限