创建文件夹/文件并设置权限 [英] Create folder/file and set permissions
本文介绍了创建文件夹/文件并设置权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在XP中从命令行创建文件夹/文件,然后将所有内容授予所有人权限?我从属性尝试过,我取消选择只读,但是当我再次为该文件夹/文件打开属性时,它始终为READONLY。
How to in XP from command line create folder/file and after that allow everything to everyone permissions ? I tried from properties, I deselect readonly but when I open properties again for that folder/file it is always READONLY.
推荐答案
您必须使用 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
这篇关于创建文件夹/文件并设置权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文