我只是在学习icacls来设置文件夹的权限。更好的是,我想确保文件夹是只读的。有人有什么想法吗?
C:>icacls.exe C:\TEMP\Reports 开关
发布于 2012-02-01 01:31:48
也许是这样的?尝试搜索网站,有很多icacls示例。
REM take ownership and reset permissions
TAKEOWN /f "C:\TEMP\Reports" /r /d y
ICACLS "C:\TEMP\Reports" /reset /T
REM grant full control to administrators, read only to everyone else
ICACLS "C:\TEMP\Reports" /grant:r "BUILTIN\ADMINISTRATORS":(OI)(CI)F ^
/grant:r "BUILTIN\EVERYONE":(OI)(CI)R ^
REM set inheritance on everything below
ICACLS "C:\TEMP\Reports" /inheritance:rhttps://serverfault.com/questions/355633
复制相似问题