windows - 使用icacls设置文件夹权限递归继承

标签 windows icacls

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

我的文件夹是这样的:

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

最佳答案

像这样:

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

关于windows - 使用icacls设置文件夹权限递归继承,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22327776/

相关文章:

windows - 如何从 forfiles 变量中删除引号

c++ - 使用具有缓存大小限制的 FILE_FLAG_RANDOM_ACCESS 访问文件

c++ - Windows GDI 上下文 - CreateDIBSection

windows - 使用 cmd 提示符编写脚本

Windows脚本FOR命令重命名目录中的所有文件

powershell - 使用icacls设置文件夹权限

powershell - 使用 ICACLS 将文件权限设置为 'read-only'

linux - 使用 smbclient 远程更改推送到 W7 机器的文件的权限

python - 从 python 调用 Windows 的 icacls