Friday, April 20, 2018

Windows Server 2008 - File Permissions and Administrator



This is what I did on my Windows 2008r2




  1. Logged in as Administrator (UAC is disabled for a test sake)


  2. Select a folder


  3. Edit Advanced Permissions


  4. Uncheck"Include inheritable permissions" and click on Remove button to remove inheritable permissions



  5. Got a message "No one will be able to access the folder except for the owner". At this point I thought that Administrator should still have access and "no one" doesn't apply to me :)


  6. After answering OK, I lost all control over the permissions window and got "Access denied" message. The only option was to take ownership and put back Administrator with Full Control.




Is there a Linux root equivalent in Windows that can have access to a file without granting full control?



If not, is the only option to administrate files in Windows is to give Administrator Full Control to ALL files (I'm excluding the take ownership option as not practical)?


Answer




Is there a Linux root equivalent in Windows that can have access to a file without granting full control?





No. Unless your Administrator user has permissions to perform an action on a file (either explicitly, or through group membership), he will not be able to perform the action on the file.



The exception, which you have noted, is file/folder ownership. An administrative user will always be able to take ownership of a file, and change permissions that way.




If not, is the only option to administrate files in Windows is to give Administrator Full Control to ALL files (I'm excluding the take ownership option as not practical)?





It's not especially clear what you mean by this, but in general, if you want a user to administer a file or folder, yeah, they need to have the filesystem permissions to do so.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...