Windows下类似Linux下chmod
命令,修改文件(文件夹)权限:
CACLS files /e /p {USERNAME}:{PERMISSION}
参数:
/p
: Set new permission/e
: Edit permission and kept old permission as it is i.e. edit ACL instead of replacing it.{USERNAME}
: Name of user{PERMISSION}
: Permission can be:R
– ReadW
– WriteC
– Change (write)F
– Full control