|
CACLS
Displays or modifies access control lists (ACLs) of files.
Similar to what can be done by right-clicking the file and
going to Properties, Security.
Syntax
cacls FileName [/t] [/e] [/c] [/g User:permission] [/r User [...]] [/p User:permission [...]] [/d User [...]]
Switches:
/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 = R Read, W Write, C Change, OR Full control
/R Revoke specified user's access rights (only valid with
/E).
/P user:perm Replace specified user's access rights.
perm = N None, R Read, W Write, C Change (write),
OR F Full control
/D Deny specified user access.
You can see the current security settings on a file or
directoy by entering:CACLS filename or directoryname.
Batch File Commands
|