XP operating system folder access permission settings

Source: Internet
Author: User
Use the cacls command in the following format:
Cacls.exe C:/e/T/g everyone: F # Set drive C to everyone for browsing
Cacls.exe D:/e/T/g everyone: F # Set drive d to everyone for browsing
Cacls.exe E:/e/T/g everyone: F # Set the edisk to everyone for browsing
Cacls.exe F:/e/T/g everyone: F # Set drive F to everyone for browsing

Cacls filename [/T] [/E] [/C] [/g User: perm] [/r user [...] [/P User: perm [...] [/d user [...]

Filename -- display the access control list (ACL);/t -- change the ACL of the specified file in the current directory and all its subdirectories;/e -- edit the ACL without replacing it; /c -- continue when an access denial error occurs;/g User: perm -- Grant the specified user access permission. Perm can be R (read), w (write), C (change, write), F (full control ); /r user -- revoke the access permission of the specified user (only used with/E);/P User: perm -- replace the access permission of the specified user; /d user -- deny access from the specified user.

1. view the Directory and ACL

Taking Windows XP as an example, the author uses the cacls command to view the CCE Directory Access Control permission of the e-disk. Click Start> Run. In the run dialog box, enter the CMD command. In the command prompt dialog box that appears, enter the cacls CCE command at the E: \> prompt, the user group and the user's access control permissions to the CCE directory in Windows XP are listed. To view all the file access control permissions in the CCE directory, enter the "cacls CCE \." command.

2. Modify the Directory and ACL

Set User Access Permissions: we often need to modify the access permissions of directories and files, which can be easily achieved by using the cacls command. In the following example, the local user testuser must have full control permissions on the files in the test directory and all subdirectories of the d disk. In the command prompt dialog box, enter the "cacls test/T/E/C/g testuser: F" command.

Replace the user access permission: Replace the full control permission of the local user testuser with the read-only permission. In the command prompt dialog box, enter the "cacls test/T/E/C/P testuser: R" command.

Revoke User Access Permissions: To revoke full control permissions of the local user testuser on this directory, run "cacls test/T/E/C/R testuser" in the command prompt.

Deny User Access: To deny user testuser access to files in the test directory and all its subdirectories, Run "cacls test/T/E/C/D testuser ".

Change the D disk format to NTFS,
Click Start/run and Enter cmd.
Enter convert D:/Fs: NTFS/V
It will take effect after restart.

Step 1:
1. My computer -- tools -- Folder Options -- View
Remove the selected state of "use simple file sharing". OK.
Step 2:
Right-click drive D-security-to set permissions!

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.