The estimated reading time 3 minutes
Folder owner should not be able to change permissions / OWNER Rights explained for NTFS security
Some time ago we had a interesting discussion concerning ownership of folder which were created by regular users. Standard behaviour: as user who has created the folder you have FULLACCESS to it and you are able to change permissions as you like.
Aim: if an user creates a folder he or she should not have fullaccess to this folder and should not be able to change permissions.
As a short review I describe the default behaviour in NTFS.
First have a look on default permission of a share on a windows fileserver (no changes applied)
The Creator Owner permission allows user to get fullaccess to created folders. So if an user creates a new folder under this share he is given fullaccess to it and he can also modify and delete NTFS permissions. See screenshot:
After this step I created another subfolder in testfolder01 with another user (user09)
Sometimes you want to know who changed permission or created this folder before you overwrite this peace of information. So here is the cmdlet in powershell to display the current owner if you do not see it in explorer.
get-acl -Path "C:\Shares\share01\testordner01\testunterordner01" | select path, Owner -expand access
Unfortunately I did not find lots of information from Microsoft about this important topic (if someone knows a link share it in the comment section please)
the only thing I found was this link of known SIDs LINK
- SID: S-1-3-4 Name: Owner Rights
Description: A group that represents the current owner of the object. When an ACE that carries this SID is applied to an object, the system ignores the implicit READ_CONTROL and WRITE_DAC permissions for the object owner.
NOTE: operating systems with other languages differ so there is no OWNERRIGHTS for example in german it is “Eigentümerrechte”
If you want to prevent users interaction in permission allocation you should completely remove “Creator Owner” ,replace it with “Owner Rights” and change FULLACCESS to MODIFY on the top folder (in my case Shares)
Have a look on my screenshot
Newly created folder inside this share with owner rights implemented
When I want to change permissions with user09 it is not possible although I’m the owner. User09 also is not allowed to disable inheritance so nothing happens the user should find this “secret” security setting.
Conclusion: OwnerRights are one step to better NTFS security so users can not change permissions on created folders.
NOTE: even the creator owner permission is changed to “modify” it is possible for the user to change permission. This group should be completely remove, otherwise owner rights is not working properly.
If there are any further questions leave me a comment or write an e-mail.