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:Usersusername
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.

Leave a Reply

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

You are commenting using your 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