使用icacls设置文件夹的权限以递归继承

时间:2014-03-11 13:53:17

标签: windows icacls

我想设置一个具有特定权限的特定文件夹,以继承其父文件夹的所有权限。我知道我应该使用icacls

我的文件夹如下所示:

- mp
  - build (set this one to inherit from mp)

1 个答案:

答案 0 :(得分:30)

像这样:

icacls "build\*" /q /c /t /reset

秘密是:

/reset - Replaces ACLs with default inherited ACLs for all matching files.
/t     - Performs the operation on all specified files in the current directory and its subdirectories.

Microsoft Technet icacls

了解详情
相关问题