Windows 7 drive C cannot read or write files

Source: Internet
Author: User

1. When files cannot be created on drive C or files cannot be installed:
Solution:
Run cmd as the administrator and enter
Icacls C: // setintegritylevel m
Icacls is a command line tool that displays or modifies the Random Access Control List (DACL) on a specified file and applies the stored DACL to files in a specified directory. Icacls.exe replaces cacls.exe for viewing and editing DACL. Icacls is an upgraded version of the cacls tool in Windows Server 2003 sp2. It can be used to reset the Account Control List (ACL) and backup ACL in the file from the recovery console. Unlike cacls, icacls can correctly transfer the changes and creation of the inherited ACL. For more information about icacls usage and commands, Run "icacls/?" at the command prompt /?" . Here I should be improved upgrade of cacls.
2. access the file and obtain the permission to the file:

1. Right-click the folder to view its properties. Click Security> advanced> owner
2. Click Edit → other users or groups, enter your user name in the name of the selected object, and then confirm
3. Select Replace sub-container and object owner
4. Click OK. A dialog box is displayed. Click OK again! In this way, we have ownership of this folder.
Note: If you do not select "Replace sub-container and object owner", we only have the ownership of this folder and will not obtain the ownership of all files in the sub-folder and sub-folder.
5. Click "permission"> "edit"> "add". Enter your username and click "OK ".
6. Click your username> edit, and then select "full control/allow". OK
7. Then, select "replace existing inherited permissions on all future generations with the permissions that can be inherited from this object ". Click application, OK, OK, and then confirm. In this way, we have all permissions for this folder.

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.