且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

创建文件夹/文件并设置权限

更新时间:2022-11-28 11:59:50

您必须使用 CACLS。

使用CACLS / help来获取文档。 br>
这里有两个示例:

将用户 user1的完整权限授予目录

You have to use "CACLS".
Use CACLS /help to have the documentation.
Here 2 exemples:
To give the full right to the user "user1" to the directory

CACLS c:\directory /E /T /C /G "user1":F

为用户 user1赋予目录内容的全部权限

To give the full right to the user "user1" to the content of the directory

CACLS c:\directory\*.* /E /T /C /G "user1":F