The cacls command in Windows
Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012.
The cacls command displays or modifies an arbitrary access control list (DACL) on the specified file.
The cacls command in Windows
- Syntax
- Parameters
- Note
Syntax
cacls [/ t] [/ m] [/ l] [/ s []] [/ e] [/ c] [/ g user:] [/ r user [.]] [/ p user: [.]] [/ d user [.]]
Parameters
ParameterDescription Required. Display Acls of specified files. / t Change the specified Acls in the current directory and all subdirectories. / m Change the Acls of the mounted drive to a folder. / l Working with Symbolic Link, not the target. / s: sddl replaces Acls with the ones specified in the SDDL string (invalid with / e , / g , / r , / p , or / d ). / e Edit ACL instead of replacing it. / c Continue to deny access error. / g user: Grant access to the specified user. Valid values for permissions:- n - none: No
- r - read: Read
- w - write: Write
- c - change (write): Change write permissions
- f - full control: Full control / r user [.] Revoke access of the specified user (only valid for / e ). [/ p user: [.] Replace the access of specific users.
Valid values for permissions:
- n - none: No
- r - read: Read
- w - write: Write
- c - change (write): Change write permissions
- f - full control: Full control [/ d user [.] Denies access to specified users. /? Show help at the command prompt.
Note
- If this command has not been accepted, please use icacls instead.
- Use the following table to interpret the results:
- You can use wildcards (? And *) to specify multiple files.
- You can specify multiple users.
See more:
- The command bitadmin addfilewithranges in Windows
- Bitsadmin create command in Windows
- Bitsadmin complete command in Windows
4 ★ | 1 Vote
You should read it
May be interested
- Ntcmdprompt command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012).
- What is the Internet of Things (IoT) or the connected Universal Network?internet of things (iot) is a system of computer-related devices, machines, objects, animals or people, provided with unique identifiers and capable of transmitting data over the network that there is no need for human-human interaction or human-computer interaction.
- The command bootcfg default in Windowsthe bootcfg default command specifies the operating system entry as the default, applicable to: windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.
- The bitsadmin getbytestransferred and bitsadmin commands getcompletiontime in Windowsthe bitsadmin getbytestransferred command retrieves the number of bytes transferred for the specified task. the bitadmin command getcompletiontime retrieves the time that the specified task has completed the data transfer.
- Bitsadmin command getcreationtime and bitsadmin getdescription in Windowsthe bitadmin command getcreationtime retrieves the time to create the specified task. the command bitadmin getdescription retrieves the description of the specified task.
- The net print command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)