Ownership
Cheat sheet · https://pcornel.dk/topic.php?topic=2997
Answer
Every Windows file, folder and other securable object has an owner. The owner can always change the object's permissions, which is how administrators recover access by taking ownership — but owning an object does not by itself grant read or write access.
Remember
- Owner is a field in the security descriptor.
- Taking ownership changes the owner; it does not automatically replace the DACL with broad access.
- Ownership is often used as a recovery step before changing permissions.
- Preserve the original owner/DACL before large-scale remediation when rollback matters.
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
owner recorded → can always change the DACL
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.
Ownership vs permission
| Item | Meaning | Boundary |
|---|---|---|
| Owner SID | Security descriptor owner | controls ownership semantics |
| Take ownership | Changes owner | does not automatically grant all data rights |
| Change DACL | Adjust permissions | separate security operation |
| Read/write/delete | Ordinary resource rights | must still be authorized |
| Recursive takeover | Large scope change | high operational/security impact |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2997