How can I restrict access of ALL OTHER (standard) users to a specific user folder in Windows 10 Pro?
A computer with Windows 10 Pro has several users (let's use administrator A and standard users B and C as examples). In addition to the already existing standard folders (in the /users/), I would like to make further folders that only a specific user has access to, possibly on other drives. I don't mind if the administrator account(s) can have access to those folders. But the other regular users should not have access.
I have found instructions about restricting access by other users (for example here). The advice is to prohibit user B's folder from user C (and possible other already existing users). But this approach has at least two major flaws:
- If you have many users, it's quite cumbersome to go through all new folders and prohibit all others of using them. 2)
- If the computer has a new user (say, D), the new user will have access to B's and C's private folders (unless the administrator who created the account remembers to assign the appropriate prohibitions).
So is there a way to define folder permissions in such a way that all other users cannot access the folder by default? I'm thinking of setting something in the permissions of the user's folder, not something that affects the folder functions in a more complicated manner.
3 Answers
Disable permission inheritance for those folders. Then remove the "Users" or "Everyone" access entries, replacing them with just the specific accounts or groups that you need to grant access to. Everyone else will be automatically denied access.
Windows permissions are generally evaluated in this order:
- If a user matches a "Deny" entry, they're denied the permission.
- If a user matches an "Allow" entry, they're granted the permission.
- If a user doesn't match any entries, they're denied the permission.
This Thing Work in Most of Windows
Follow the Following Steps:-
- Firstly open the Folder in Windows Explorer
- Right Click on Folder
- Select Properties
- a New Window appears
- Goto Security tab
- Click on
EditButton - Select Users, it Will be Displayed as (
Computername/Users) - Check Full Control in Deny row...... And you are Done
I followed @user1686 's answer which is accurate and self explanatory, I would although improvise on steps for novice users below:
- Right click folder >
Properties>Security>Advanced>Disable inheritance>Convert inherited permissions into explicit permissions on this object>Apply. - Explicitly add your user that should continue to have access, to this list by clicking
Add>Select a principal> type Username >Check names> (ensure it has guessed correct user) >Ok. Now ensureTypeis set to:Allow> tick[ ] Full control>Ok. - click on below entries and click
Removeone by one:
a. Authenticated Users b. Users (your-PC-Name/Users)
- in
Advanced, tick[ ] Replace all child object permission entries with inheritable permission entries>Apply>Ok.