CACLS

RECENT NEWS

12/18/2015 - Hello! We're excited to announce that Mental Works Computing Software will soon be featuring

12/11/2015 - We're going to announce Dr.Batcher 3.0 Alpha with batch files debugger support soon. If you want to start...

News history...

TESTIMONIALS

Rob van der Woude:
"Mental Works Computing Software has created a nice tool for...

Andrew Jaritsyn:
“I used to write batch files with the help of Notepad, but...

Steve H.:
“This tool helped me to write some batch files in a couple...

More...

CACLS

Displays or changes ACLs (access control list) files.

ACL is a list that includes users having permissions to view, change, execute and perform other actions with files.

Syntax:

CACLS filename [/t] [/e] [/c] [/g user:permission] [/r user [...]]

or

CACLS filename [/p user:permission [...]] [/d user [...]]

Filename – the name of file which ACLs should be displayed or modified.

/t – changes ACLs of the required file in the current directory and all subdirectories.

/e – edits ACLs without replacing them.

/c – continue when ‘Access denied’ errors occure.

/g user:permission – grants the specified user permissions from the following list:

/r user – revokes the access permissions of the specified user (should be used with /e).

/p user:permission – replaces the access permissions for the specified user. Permission list is the same with the /g option.

/ d user – denies access for the specified user.

Usage:

Called with only filename CACLS shows current permissions for the file.

You can use wildcards (*, ?) in file names.

More than one user can be specified at the same time.

To use CACLS you should have ‘full control’ permissions for the file.

Examples:

Show permissions:

CACLS somefile.zip

Modify permissions:

CACLS somefile.zip /p user1:r user2:f

 

Subscribe batch files programming newsletter (no spam):

Subscribe

Unsubscribe