Today I had to perform a fairly specific task: restrict access to a Windows 7 folder to a single user. I think I found the way to do it properly, and it is not a straightforward task. Before I forget, I might keep a record of all actions required because I did not find a clear sequence anywhere on the net. It will only take 10 easy steps.
Let's assume there is a folder called Bob's Documents where only Bob, and not even the Admin>, should have access.
- Right-click on Bob's Documents and select Properties
- Bob's Documents Properties window will open. Switch to Security tab and click Advanced button.
- Advanced Security Settings for Bob's Documents will open. On the Permissions tab, Click Change Permissions button.
- Another window will open. Unfortunately, it's too called Advanced Security Settings for Bob's Documents, adding to confusion. In this new window, untick Include inheritable permissions from this object's parent - that will simplify things a lot, because we only care about permissions to this folder, not its parent folder.
- As soon as the chechbox is unticked, a warning called Windows Security will pop up. Since we're getting rid of parent permissions, click Remove.
- All permissions should have disappeared from the Permission entries. Now click Add.
- Select User or Group window will open. In Enter the object name to select, type Bob and click Check Names to make sure there is no typo. Bob's name should resolve to PCName\Bob.
- Click OK. Now the Permissions Entry for Bob's Documents window will pop up. Let's give Bob full control - click the checkbox across from Full Control under Allow. All other checkboxes under Allow will select automatically. Click OK to close this window.
- About done. Click OK in Advanced Security Settings for Bob's Documents to close it, and in another Advanced Security Settings for Bob's Documents to close it too, and OK in Bob's Documents Properties.
- Try to browse to Bob's Documents. Even if you're on Administrator account, you should not be able to, but you should if you are logged in as Bob.
Select Bob's Documents Properties
Bob's Documents Properties
Advanced Security Settings for Bob's Documents
Advanced Security Settings for Bob's Documents - but not the same one!
Windows Security warning
Select User or Group
Permissions Entry for Bob's Documents
Permissions are set
No comments:
Post a Comment