Permissions & Access Control
Cheat sheet · https://pcornel.dk/topic.php?topic=2989
Answer
Permissions & Access Control explains how Windows decides whether an access token can perform a requested operation on a securable object. The object security descriptor identifies an owner and discretionary ACL; each ACE targets a SID and grants or denies specific rights. Network file access can add a separate share-permission layer before NTFS is evaluated.
Remember
- Windows evaluates the access token against a security descriptor; account names are resolved to SIDs.
- NTFS and share permissions are separate authorization layers for SMB access; both must permit the requested operation.
- Explicit and inherited ACE ordering matters, but effective access is more than a simple “deny always wins” slogan.
- Ownership is not the same as read/write permission; taking ownership is primarily a recovery/control action.
- A NULL DACL and an empty DACL are very different: NULL grants unrestricted access, while an empty DACL grants no access.
First checks
Get-Acl <path> | fl— owner and ACLicacls <path>— ACEs with inheritance flagswhoami /groups— groups in the current tokenGet-SmbShareAccess <share>— share permissions
Commands
icacls- Displays and modifies Windows file/folder DACLs, ownership-related ACL metadata and inheritance settings. Use it first …
takeown- Changes the owner of a Windows file or folder to the current user or Administrators (depending on options) as a recover…
Verify in this order
user token → share permissions (network) → NTFS ACL → access
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.
Windows authorization layers
| Item | Meaning | Boundary |
|---|---|---|
| Token | User/group SIDs and privileges | who is requesting access |
| Share permission | SMB share-level authorization | applies when accessing through the share |
| NTFS DACL | Filesystem object authorization | applies to NTFS object access |
| Owner | Controls ownership/recovery semantics | does not automatically grant ordinary data access |
| Effective result | Combined runtime access check | must be verified in the real access path |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2989