Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I want to restrict the access of a folder to myself only, and considering I am the owner, can I leave the Users and Everyone groups in the ACL or do I have to remove them ?

If I remove these groups, will I be able to access the folder anyway ?

I have read the access control chapter in windows help and it's not explicitely specified there.

share|improve this question

migrated from stackoverflow.com Dec 1 '11 at 14:45

This question came from our site for professional and enthusiast programmers.

1 Answer 1

You will want to remove the Everyone and Users users to prevent those files being accessible by everybody.

As long as you put yourself (your username) in the ACL then you will retain access. Make sure you do this or you may lose access.

share|improve this answer
1  
Also, don't use "Deny" permissions, particularly with things like Everyone and Users or you'll have a hard time regaining access afterwards, since "Deny" ACEs take higher precedence than "Allow." –  afrazier Dec 1 '11 at 15:47
    
You are correct, and I have also found the following statements in Windows Help : "In most cases, Deny overrides Allow unless a folder is inheriting conflicting settings from different parents. In that case, the setting inherited from the parent closest to the object in the subtree will have precedence. Inherited Deny permissions do not prevent access to an object if the object has an explicit Allow permission entry." So the bottom line is : Explicit permissions have precedence over inherited ones. Deny has precedence over Allow. –  Bluz Dec 1 '11 at 23:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.