How to fix "No access" error when changing Windows file permissions

After reading around I found a forum post that mentioned it, and was redirected to Microsoft’s knowledge base article on icacls.exe. After looking over that one I found this command line that solved everything.
cd C:\Users\username
icacls * /reset /T

The /T switch makes it run recursively. /reset, as the KB article explains, replaces the ACL on each file and folder with the default inherited ACL that just uses the ACL on the parent folder.
The last thing that was required was to run this command inside a cmd.exe shell with elevated privileges. You can do that by finding the Command Prompt icon in your start menu and right-clicking “Run as administrator”.
Be aware that mucking around with ACLs, if you don’t know what you’re doing, can seriously break your system in more ways than you can think of. It can also open you up to various attacks because of more relaxed permissions.
Advertisements

Author: Protiguous

C# Software Developer, Father, and seeker of Truth.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s