Share Permissions
Cheat sheet · https://pcornel.dk/topic.php?topic=2991
Answer
Share permissions control access through a Windows SMB share. They are separate from NTFS permissions: remote access through the share must pass the share authorization and the underlying filesystem authorization, while local filesystem access does not use the share permission layer.
Remember
- Share permissions apply to the share path, not direct local filesystem access.
- NTFS and share permissions are separate checks; remote access must satisfy both.
- Changing NTFS does not change the share ACL and vice versa.
- A broad share permission with restrictive NTFS is a common design, but the intended security model is environment-specific.
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
network access → share permissions → then NTFS
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.
Local vs share access
| Item | Meaning | Boundary |
|---|---|---|
Local path C:\Data | NTFS/object permissions | share permissions not involved |
UNC \\server\share | Share + NTFS | both layers must permit requested access |
| Share permission changed | SMB layer only | NTFS unchanged |
| NTFS changed | Filesystem layer | share ACL unchanged |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2991