Pcornel
Windows · Permissions & Access Control

Permission Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=2998

Back to the Topic

Answer

Permission Troubleshooting is the systematic path for Windows Access Denied and unexpected access. It proves the requester/token first, then evaluates the exact requested right through share and NTFS/object ACL layers before considering ownership or elevation recovery actions.

Remember

  • Reproduce with the affected identity and exact path.
  • Prove the runtime token before changing the resource ACL.
  • Local paths and UNC paths can traverse different authorization layers.
  • Capture owner/DACL/inheritance before remediation.
  • Access Denied is not always an ACL failure; locks, encryption, offline resources or application behavior can look similar.

First checks

  • Get-Acl <path> | fl — owner and ACL
  • icacls <path> — ACEs with inheritance flags
  • whoami /groups — groups in the current token
  • Get-SmbShareAccess <share> — share permissions

Verify in this order

user token → share → NTFS path walk → object ACL → result

Where it usually breaks

First mismatch in identity/token/certificate → policy source → security provider/enforcement → target resource → audit/detection evidence; preserve identity/native error/pre-state before mutation.

Permission troubleshooting order

ItemMeaningBoundary
1. Identity/tokenSID, groups, elevationprove requester
2. PathLocal vs UNC, target objectprove authorization route
3. Share ACLRemote SMB onlyprove share layer
4. NTFS DACLOwner, ACEs, inheritanceprove filesystem layer
5. Controlled remediationSmallest justified changeverify and preserve security

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2998

Confirmation

Confirm action

Continue?