Share Permissions and Combined Use with NTFS Permissions

Share permissions are the permission layer that controls access to a folder over the network through the SMB protocol. When a user connects to a share with a UNC (Universal Naming Convention) path, Windows first checks the permissions of the share and then the NTFS (New Technology File System) permissions of the folder. The user receives only the access that both layers allow, which means the most restrictive of the 2 applies.

The mistake I see most often in the field is that only 1 of the 2 layers is configured and the other is forgotten. A user with Full Control on the share cannot open the folder because there is no NTFS permission, or a user with Modify on NTFS cannot save a file because of Read on the share. In both cases, the problem is investigated without checking which layer the permissions are defined on.

In this article, I explain how share permissions work, the permission levels, and how they are evaluated together with NTFS permissions. I then share a folder and show the effect of the most restrictive permission and of Deny with 2 example scenarios, and continue with managing share permissions with PowerShell and with Access-Based Enumeration. The details of NTFS permissions are outside the scope of this article. I covered them in a separate article. The model I describe works in the same way on Windows Server and Windows Client versions.

This article is not tied to a specific Windows version. The share permission model, the basic management steps and the SMB PowerShell cmdlets described here apply with the same basic principles from Windows Server 2012 to 2025 and from Windows 8 to 11.

1- How Do Share Permissions Work?

How Share and NTFS Permissions Are Evaluated Together

The path used for the access decides which permission layer applies. When the folder is accessed through the local path (for example D:\COMPANY), only NTFS permissions apply. When the folder is accessed over SMB, that is, with a UNC path, share and NTFS permissions are evaluated together.

Access Path Effective Permissions
✅ UNC path (\\Server Name\Share, \\IP Address\Share) Share and NTFS permissions are evaluated together, and the most restrictive applies.
✅ Local path (such as D:\COMPANY) Only NTFS permissions apply, and share permissions are not evaluated.

The path decides this, not the computer. When I sign in to the server itself and connect to the share with \\localhost\COMPANY, the access still goes over SMB, so the share permissions are evaluated as well.

If the folder is on a volume formatted with NTFS, NTFS permissions are evaluated on every access. However broad the share permissions are, access is denied if no permission on the NTFS side matches the user. I explained the details of the NTFS side, such as the ACE evaluation order and Deny precedence, in my NTFS permissions article.

Scope and Limits of Share Permissions

Share permissions are defined only on the shared folder and apply to the whole share. There is no inheritance, and a subfolder under the share cannot be given a different share permission. For this reason, every authorisation requirement that differs at subfolder level is solved on the NTFS side.

Share permissions can be applied to folders on volumes formatted with NTFS, ReFS, FAT and exFAT. Because FAT and exFAT do not support file permissions, share permissions are the only layer that controls access on these volumes.

Users who sign in to the server and access files through the local path, for example Remote Desktop users, are not affected by share permissions. Only NTFS permissions restrict these users.

2- Share Permission Levels

Share permissions consist of 3 levels: Read, Change and Full Control. Each level can be granted as Allow or Deny. When a share is created, the Everyone group is assigned Read permission by default.

Permission Level Rights Granted as Allow Rights Blocked as Deny
Read Listing files and subfolders, reading file contents, running programs Blocks reading and listing through the share
Change In addition to Read, creating files and folders, changing content, deleting files and folders Blocks create, change and delete operations
Full Control In addition to Change, changing NTFS permissions and taking ownership through the share Blocks all access through the share

Full Control on the share does not give the user the right to change the share's own permissions. Editing share permissions requires administrator rights on the server.

1- Allow

Read permission is assigned to the Everyone group by default. The user sees the files and subfolders in the share and opens and reads the files, but cannot make changes.

Share permissions in Windows

Change permission gives, in addition to all the rights of Read, the right to create files and folders, change the content of files, and delete files and subfolders.

Share permissions in Windows

Full Control permission gives, in addition to all the rights of Change, the right to change the NTFS permissions of the folder and to take its ownership through the share. These rights can be used only if they are also granted on the NTFS side.

Share permissions in Windows

2- Deny

The level selected under Deny denies the rights that the level covers. Deny is evaluated before an Allow that comes from another entry on the same share, for example from a group that the user is a member of.

When Deny is selected for Read, the user cannot access the files and subfolders in the share.

Share permissions in Windows

When Deny is selected for Change, the user cannot create files and folders in the share, and cannot change or delete existing files.

Share permissions in Windows

When Deny is selected for Full Control, all access through the share is blocked.

Share permissions in Windows

A Deny given to a broad group such as Everyone or Domain Users removes access through the share for everyone in that group, including administrators.

3- Creating the Share and Assigning Share Permissions

Preliminary Check

In this exercise, I share the COMPANY folder on the server and test with the Fırat Boyan user from the PC01 computer. For the results to match the screenshots, the environment must be in the following state:

Check Expected State
Account that creates the share Has administrator rights on the server
NTFS permissions of the COMPANY folder The Users permissions inherited from the volume root do not give access to the Fırat Boyan user
Group memberships of the Fırat Boyan user Does not receive permission on COMPANY through another group
Test client Signed in on PC01 as the Fırat Boyan user

The reason for row 2 is as follows. The default NTFS permissions of the volume root give the BUILTIN\Users group read access. On domain-joined servers, the Domain Users group is a member of this group. If the COMPANY folder inherits this permission, the user can open the folder without a separate permission on the NTFS side, and the result in step 10 changes.

Example Scenario-1 - Creating the Share

I create the share with Advanced Sharing on the Sharing tab, because this method changes only the share permissions and does not change the NTFS permissions.

The File Sharing wizard, which opens with the Share... button on the Sharing tab, also changes the NTFS permissions for the selected users. I use Advanced Sharing to control the 2 layers separately.

1- In the folder properties window, I click the Advanced Sharing... button on the Sharing tab.

Share permissions in Windows

2- In the Advanced Sharing window, I select the Share this folder option.

Share permissions in Windows

3- After Share this folder is selected, the Permissions button, where I assign the permissions, also becomes active.

Share permissions in Windows

4- In the Permissions window, the Group or user names area is the permission list of the share. Every user or group that accesses the share is added to this list, and a separate permission is defined for each.

Share permissions in Windows

5- To add a user or group, I click the Add... button.

Share permissions in Windows

6- In the Select Users, Computers, Service Accounts, or Groups window that opens, I type all or part of the user or group name in the Enter the object names to select field and click the Check Names button. If only part of the name was typed, the system finds the matching object and completes it. I add the Fırat Boyan user.

Share permissions in Windows

Share permissions in Windows

Share permissions in Windows

Share permissions in Windows

7- In this exercise, I remove the Everyone group from the list to show the effect of the 2 layers on a single user. I explain how I configure the share side in real environments in section 8.

Share permissions in Windows

When I remove the Everyone group from the list, everyone who is not left in the list, including administrators, loses access through the share.

8- I give the Fırat Boyan user Allow for Full Control on the COMPANY share.

Share permissions in Windows

Share permissions in Windows

9- The COMPANY folder is now shared, and a share permission is defined for the Fırat Boyan user.

Share permissions in Windows

10- I sign in on the PC01 computer as the Fırat Boyan user and connect to the share through \\Server Name or \\IP Address.

Share permissions in Windows

When a connection to a share uses the IP address, Windows does not attempt Kerberos by default and in most cases falls back to NTLM. When the connection uses the server name, Kerberos is used if a suitable SPN and access to a domain controller are available.

When I click the COMPANY share, I receive a warning that I do not have access permission, although I granted Full Control on the share. The reason is that the NTFS permissions of the folder have no entry that matches the Fırat Boyan user. If there is no match on the NTFS side, access is denied, and the permission on the share has no effect on its own.

Share permissions in Windows

Checkpoint
The share must be visible on the network, but access must be denied when it is opened. On the server, the output of Get-SmbShareAccess -Name COMPANY must show the Fırat Boyan user as Full Control and Allow.

4- Defining the NTFS Permission and the Most Restrictive Permission

1- On the server, I go to the Security tab in the properties of the COMPANY folder and define an NTFS permission for the Fırat Boyan user. To do this, I click the Edit... button.

Share permissions in Windows

2- In the window that opens, I click the Add... button to add the user to the list.

Share permissions in Windows

3- I type fırat, click the Check Names button and, after the name is completed, add the user with OK.

Share permissions in Windows

4- When the user is added, the Read and Execute, List Folder Contents and Read permissions are selected by default on the NTFS side. I save without changing these permissions.

Share permissions in Windows

Share permissions in Windows

5- When I connect to the share again from the PC01 computer, this time I can see the contents of the folder without any problem.

 Share permissions in Windows

6- I try to create a New Folder inside the shared folder.

 Share permissions in Windows

I cannot create a folder, although I have Full Control on the share. Because I access the share over the network, the 2 layers are evaluated together. The permission on the NTFS side is limited to reading, so this permission, the most restrictive of the 2 sides, is applied. For the user to create a folder, write access must also be granted on the NTFS side.

Share permissions in Windows

Checkpoint
The user must be able to see the contents of the share but must not be able to create a folder. On the Effective Access tab of the COMPANY folder, the write-related permissions must appear as not granted for Fırat Boyan.

5- Example Scenario-2 - The Effect of the Deny Permission

In this scenario, I show which permission applies when the same user receives Allow through a group and Deny is given to the user directly.

1- In Active Directory Users and Computers, I add the Fırat Boyan user to the security group named IT, which I created earlier.

Share permissions in Windows

A group membership change is not reflected in the user's existing Kerberos tickets or in the established SMB session. A new ticket must be obtained and a new session must be established to the server. The simplest way is to sign out and sign in again on PC01.

2- In the permission list of the COMPANY folder, I give Allow for Full Control to the IT group.

Share permissions in Windows

3- In the same list, I give Deny for Full Control to the Fırat Boyan user.

Share permissions in Windows

4- When I connect to the share again from the PC01 computer, I receive a warning that I do not have access permission, although I received Full Control through the IT group.

These 2 entries are defined in the same list and at the same level. Because Windows evaluates Deny entries before Allow entries, the Deny given to the user overrides the Allow from the group. Because share permissions have no inheritance, this rule applies to every entry in the share list. On the NTFS side, however, an explicitly defined Allow is evaluated before a Deny inherited from a parent folder. The details of this distinction are in the ACE evaluation order section of my NTFS permissions article.

Share permissions in Windows

Checkpoint
The user must not be able to access the share at all. When the Deny entry is removed and the user signs in again, access must return with the permission from the IT group.

6- Managing and Verifying Share Permissions with PowerShell

When the number of shares grows, I use the SMB cmdlets of PowerShell instead of checking the permissions one by one in the interface. I run the commands on the server in an elevated (Run as administrator) PowerShell session. The {Domain}\{Account} value in the commands must be replaced with the user or group that receives the permission.

First, I display the share itself and its permission list.

Get-SmbShare -Name "COMPANY"
Get-SmbShareAccess -Name "COMPANY"

Each row in the Get-SmbShareAccess output is 1 entry. The AccountName column shows the user or group, the AccessControlType column shows whether the entry is Allow or Deny, and the AccessRight column shows the value Read, Change or Full.

I use the following commands to grant a permission to a user or group and to remove the granted permission. The AccessRight parameter takes 1 of the values Read, Change or Full.

Grant-SmbShareAccess -Name "COMPANY" -AccountName "{Domain}\{Account}" -AccessRight Change -Force
Revoke-SmbShareAccess -Name "COMPANY" -AccountName "{Domain}\{Account}" -Force

Adding and removing a Deny is done with separate cmdlets. Revoke-SmbShareAccess removes only Allow entries. Removing a Deny entry requires Unblock-SmbShareAccess.

Block-SmbShareAccess -Name "COMPANY" -AccountName "{Domain}\{Account}" -Force
Unblock-SmbShareAccess -Name "COMPANY" -AccountName "{Domain}\{Account}" -Force
A change to share permissions takes effect on new connections, and may not be reflected for users who are already connected to the share until the connection is established again. Before I remove a permission on a share that is in use, I check who will be affected.

To see what a user can actually do through the share, I use the Effective Access tab under Security, Advanced in the folder properties. When I select the user and click the View effective access button, the permissions restricted by the share appear as Share in the Access limited by column. In this way, I can identify on a single screen which layer an access problem comes from.

7- Access-Based Enumeration

Access-Based Enumeration (ABE) hides the files and folders in a share from a user who has no read permission on them. When ABE is disabled, the user also sees the folders that they cannot access in the list and receives an error when trying to open them. When ABE is enabled, these folders do not appear in the list at all.

ABE is a visibility setting and does not change the access decision. NTFS and share permissions still decide whether the user can access a folder. ABE also does not affect the list of shares on the server.

I enable ABE in Server Manager under File and Storage Services, Shares, from the properties of the share, with the Enable access-based enumeration option on the Settings page. I can also apply the same setting with PowerShell.

Set-SmbShare -Name "COMPANY" -FolderEnumerationMode AccessBased -Force

8- Share Permission Design

Because share permissions apply to the whole share and cannot differ at subfolder level, I use this layer as a coarse filter. I give Full Control to the Authenticated Users group on the share and configure all restrictions on the NTFS side. In this way, the permissions are managed in 1 place, and I do not have to compare 2 separate lists when I investigate an access problem. I add an extra restriction on the share only when there is a specific requirement, such as a particular share being read-only over the network.

With this model, I can create the share with a single PowerShell command. You need to replace the {Share Name} and {Folder Path} values to match your own environment.

New-SmbShare -Name "{Share Name}" -Path "{Folder Path}" -FullAccess "NT AUTHORITY\Authenticated Users"
On non-English Windows versions, the names of built-in groups may be localised. If the command cannot find the group name, the equivalent name in the server's language must be used.

On the NTFS side as well, I give permissions to groups, not to individual users. Authorising users through groups means that when a user's access changes, I change only the group membership and leave the permission list unchanged. To distribute shares to users as drives, I use Drive Maps under Group Policy Preferences.

I confirm that a share is configured correctly with these criteria: the Get-SmbShareAccess output shows the share permissions I designed, the Effective Access result of the test user matches the permissions I granted on the NTFS side, and no unexpected Share restriction appears in the Access limited by column. From this point, I meet new authorisation requirements only on the NTFS side and through group memberships. My other articles in the Network and Windows Server categories also complement this topic.

I hope you find it useful...

No comments on this article yet. Be the first to comment!

750 characters available.
Security code
Comments are published once approved.
Your email is only used to let you know when your comment is approved. It is never published.