Windows errors

'Access Denied' or 'You don't have permission' when opening a file or folder

Trying to open, move, or edit a specific file or folder results in a message saying access is denied or you don't have permission, even though you're using your own account on your own computer.

Difficulty
Easy
Time
15–30 minutes
DIY cost
$0
Pro cost
$60–$100

Symptoms

  • Error specifically mentions Access Denied or lack of permission
  • Happens with a specific file, folder, or drive rather than everything
  • May follow copying files from another computer or user account
  • Sometimes affects an entire folder and everything inside it

Likely causes

  • CommonFile or folder ownership belongs to a different user accountFiles copied from another PC or a different Windows account often retain the original owner's permissions.
  • CommonUser Account Control (UAC) restricting access to a protected locationCertain system folders require administrator elevation to access, even for admin accounts.
  • PossibleFile was encrypted by a different user account (EFS encryption)Windows's built-in file encryption ties access to the specific account that encrypted it.
  • PossibleAntivirus or security software actively blocking accessSome security software locks files it's scanning or considers suspicious.
  • Less commonFile is actually in use by another programSome 'permission' errors are really a file-in-use conflict misreported as a permissions issue.

What to do

  1. Right-click the file or folder, choose Properties, then the Security tab, and click Advanced to check who currently owns it.
  2. If the owner is a different account or 'TrustedInstaller,' click Change next to the owner, enter your username, and confirm; check 'Replace owner on subcontainers and objects' if it's a folder.
  3. After taking ownership, go back to the Security tab, click Edit, select your user account, and ensure Full Control is checked, then apply.
  4. Try right-clicking the file/program and choosing 'Run as administrator' if it's an application rather than a data file.
  5. Temporarily disable third-party antivirus software to test whether it's blocking access, then re-enable it afterward.
  6. If the file shows as encrypted (often displayed in green text in File Explorer) and was created under a different user profile, it may not be recoverable without that original account's credentials or certificate.
  7. Restart the computer and try again, since a background process holding the file (misreported as a permissions error) can sometimes be cleared this way.

When to call a pro

If taking ownership doesn't resolve access and the file appears to be encrypted under a different account, a technician may be able to help recover access depending on the specific encryption setup.

Safety

Generally low risk

Generally low risk for a careful person. Stop if anything looks different from what this guide describes.

Related guides

Operator provides AI-generated troubleshooting information. It can be wrong. For safety-critical, electrical, gas, structural, medical, automotive safety, or other high-risk problems, consult a qualified professional.