Permission Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=2998
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 ACLicacls <path>— ACEs with inheritance flagswhoami /groups— groups in the current tokenGet-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
| Item | Meaning | Boundary |
|---|---|---|
| 1. Identity/token | SID, groups, elevation | prove requester |
| 2. Path | Local vs UNC, target object | prove authorization route |
| 3. Share ACL | Remote SMB only | prove share layer |
| 4. NTFS DACL | Owner, ACEs, inheritance | prove filesystem layer |
| 5. Controlled remediation | Smallest justified change | verify 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