Microsoft DOS cacls command
The cacls.exe command is an external command and is available in the below Microsoft operating systems.
Displays or modifies access control lists (ACLs) of files
CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]] [/P user:perm [...]] [/D user [...]]
|/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. |
|/R user||Revoke specified user's access rights (only valid with /E).|
|/P user:perm||Replace specified user's access rights. |
|/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.
Displays the ACLs for the myfile.txt file. Below is an example of what this may look like.
cacls myfile.txt /e /g mrhope:f
Grants the user "mrhope" full rights to the myfile.txt file. If user was to look at the ACLs again using the above command, they would now see that the mrhope user is in the list.