CACLS Display or modify discretionary access control List (DACL) files _dos/bat

Source: Internet
Author: User
Cacls
Displays or modifies any access control list (DACL) file.

Grammar
cacls FileName [/t] [/e] [/c] [/g user:permission] [/R User [...]]] [/P User:permission [...]] [/D User [...]]

Parameters
FileName
Necessary. Displays the DACL for the specified file.
/t
Changes the DACL for the specified file in the current directory and all subdirectories.
/e
Edit the DACL instead of replacing it.
/C
Ignore the error and continue modifying the DACL.
/g user:permission
Grants access rights to the specified user. The following table lists the valid values for permission. Value Description
n None
R reading order
W Write
C Change (write)
F Full Control

/R User
Cancels the access rights of the specified user.
/P User:permission
Overrides the access rights of the specified user. The following table lists the valid values for permission. Value Description
n None
R reading order
W Write
C Change (write)
F Full Control

/d User
Deny access to the specified user.
/?
Display Help at the command prompt.
Comments
Use the following table to interpret the output results. The output ACE applies To
OI This folder and file
CI This folder and subfolders
IO ACE does not apply to the current file/directory.
No output message only this folder
(IO) (CI) This folder, subfolders, and files
(OI) (CI) (IO) Subfolders and files only
(CI) (IO) Subfolders only
(OI) (IO) files only

Use wildcard characters (?) and *) can specify multiple files.
You can specify multiple users.
XOX

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.