Use this branch for Access Denied, unexpected file/share access, inherited permission behavior, ownership recovery or when you need to distinguish configured ACLs from effective runtime access.
Permissions & Access Control
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.
1. Reproduce as the affected user.
2. Token: whoami /groups (new logon after group changes).
3. NTFS: icacls <path>; share: Get-SmbShareAccess.
4. Effective = most restrictive of share and NTFS for network access.
5. Fix the group membership or ACL, least privilege.
user token → share permissions (network) → NTFS ACL → access
Evaluate the first denying layer or reproduce access while observing the correct token/path.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not grant Full Control to Everyone as a diagnostic shortcut. Do not reset inheritance or take ownership until you have preserved the original ACL. Do not assume share permissions explain local access, and do not assume an NTFS allow explains remote SMB access.
Operational reference
Fast context before you go deeper.
icaclsPrimary Commands
Configuration and operational commands for this Topic.
icaclsReferenceDisplays and modifies Windows file/folder DACLs, ownership-related ACL metadata and inheritance settings. Use it first as an evidence tool before using grant/deny/reset/restore operations.
Use when: Use icacls <path> to capture the current ACL before permission remediation. Use state-changing forms only after identifying the exact failed right and preserving a rollback/reference copy.
Quick note: icacls shows configured ACL evidence; effective access still depends on token SIDs, requested rights and other authorization layers.
takeownReferenceChanges the owner of a Windows file or folder to the current user or Administrators (depending on options) as a recovery step when existing ownership prevents security administration.
Use when: Use only after proving ownership is the blocking recovery boundary and after capturing the existing owner/DACL. Prefer the smallest possible target scope.
Quick note: Treat takeown as a security-recovery tool, not a general permission-fix command.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Reproduce the exact path and operation. Capture the principal/token, determine whether the access is local or through a share, inspect the target owner/DACL and inherited ACEs, and compare the requested operation to the granted rights. After changes, verify with the same user/path/process context.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
NTFS permissions on files and folders: DACL-based rights such as Read, Write, Modify and Full Control, inherited to child objects according to ACE flags.
Subtopic Share PermissionsSMB share permissions: share-level authorization applied to remote access before/alongside filesystem permissions.
Subtopic Effective PermissionsEffective Windows permissions: the runtime result of token SIDs, ordered ACEs, inheritance, share/NTFS layers, ownership and privileges for a requested access.
Subtopic InheritanceWindows ACL inheritance: propagation of parent ACEs to child files/folders with inheritance flags, canonical ordering and inheritance disable/convert behavior.
Subtopic Explicit PermissionsExplicit Windows permissions: ACEs authored directly on an object, their precedence position relative to inherited entries and use for intentional exceptions.
Subtopic ACLWindows Access Control Lists in security descriptors: DACL for discretionary access and SACL for auditing, including the critical NULL-vs-empty DACL distinction.
Subtopic ACEWindows Access Control Entries (ACEs): allow, deny and audit entries targeting SIDs with specific access masks and inheritance/application flags.
Subtopic OwnershipWindows object ownership: owner SID, ability to control/repair DACLs, taking ownership and the distinction between ownership and ordinary data access.
Subtopic Permission TroubleshootingEvidence-first Windows permission troubleshooting across token identity, NTFS DACL, inheritance, share permissions, ownership, UAC/elevation and non-permission failures.
- 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.
Get-Acl <path> | fl— owner and ACLicacls <path>— ACEs with inheritance flagswhoami /groups— groups in the current tokenGet-SmbShareAccess <share>— share permissions
ReferenceWhat it is1 section · depth on demand
Core model
Windows securable objects carry security descriptors. For discretionary access, the key pieces are the requester’s access token and the object DACL. ACEs in the DACL identify SIDs and rights to allow or deny. File access over SMB can add share permissions as another layer before the NTFS filesystem authorization is considered.
ReferenceImportant terms & boundaries2 sections · depth on demand
Security boundary
Avoid reducing Windows authorization to one rule. Effective access depends on the requested access mask, the user and group SIDs in the token, the ordered ACEs that apply, inheritance, object-specific rights, owner/privilege effects and—when remote through SMB—the share layer. A useful operational model is to identify each boundary rather than guessing from one checkbox.
In depth
Windows access control: every securable object (file, registry key, service, AD object) has a security descriptor with an owner, a DACL (who may do what) and a SACL (what to audit). When a process opens an object, the Security Reference Monitor compares the process token (user SID, group SIDs, privileges, integrity level) with the DACL.
Get-Acl D:\Data | Format-List
icacls D:\Data
whoami /groups /priv
Privileges (e.g. SeBackupPrivilege, SeTakeOwnershipPrivilege, SeDebugPrivilege) can bypass DACLs — treat them as admin-equivalent.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Permissions & Access Control. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/win32/secauthz/access-control · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Windows authorization layers
The common path for file and share access.
| 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 |