Zia*_*hoy 1 windows-server-2003
我曾尝试在 Windows Server 2003 计算机上使用 xcacls 和 cacls,但是当我使用 /g 时,它们都替换了现有权限。有谁知道可以简单地添加权限的命令行工具?
确保同时使用 /G和 /E(编辑模式)(很可能也使用 /T)。
作为参考,这里是命令的完整使用信息 CACLS /?
Run Code Online (Sandbox Code Playgroud)CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]] [/P user:perm [...]] [/D user [...]] filename Displays ACLs. /T Changes ACLs of specified files in the current directory and all subdirectories. /E Edit ACL instead of replacing it. /C Continue on access denied errors. /G user:perm Grant specified user access rights. Perm can be: R Read W Write C Change (write) F Full control /R user Revoke specified user's access rights (only valid with /E). /P user:perm Replace specified user's access rights. Perm can be: N None R Read W Write C Change (write) F Full control /D user Deny specified user access. Wildcards can be used to specify more that one file in a command. You can specify more than one user in a command. Abbreviations: CI - Container Inherit. The ACE will be inherited by directories. OI - Object Inherit. The ACE will be inherited by files. IO - Inherit Only. The ACE does not apply to the current file/directory.