Windows Server · Lesson 11

File Shares, NTFS & SMB Permissions

Secure Windows file sharing by understanding how SMB share permissions and NTFS permissions combine, then apply least privilege without breaking required user or application access.

File-server security is not one permission screen. Ownership, inheritance, group membership, share access, NTFS access, and service dependencies all contribute to the final result.

Lesson Snapshot

Access layersShare + NTFS
Main toolsGUI + PowerShell
Key concernEffective access
GoalLeast privilege

Learning objectives

What this lesson should help you do

01

Explain the difference between share permissions and NTFS permissions on Windows Server.

02

Use File Explorer, Computer Management, Server Manager, and PowerShell to review SMB shares and folder permissions.

03

Understand ownership, inheritance, explicit permissions, inherited permissions, Allow, Deny, and effective access.

04

Recognize how share permissions and NTFS permissions combine for network access.

05

Apply least privilege without breaking required file access for users, groups, applications, or service accounts.

06

Verify required SMB access from an authorized client after any permission or share change.

Core concepts

Six concepts that explain file-server access

SMB share

A folder or resource published over the network through the Server Message Block protocol.

Share permission

A permission applied at the SMB share layer that controls network access to the share.

NTFS permission

A file-system permission applied to files and folders on an NTFS volume, whether access is local or through a share.

Ownership

The owner of a file or folder can influence permission management and may be able to change access controls.

Inheritance

Allows child files and folders to receive permissions from a parent folder unless inheritance is changed.

Effective access

The access a user actually receives after all applicable group memberships, NTFS permissions, share permissions, inheritance, and Deny rules are considered.

Core idea

Network access is controlled by more than one layer

A user connecting through SMB must satisfy the share layer and the NTFS layer. Troubleshooting only one side can lead to the wrong conclusion.

Permission warning

Permission changes can break users and applications instantly

Service accounts, inherited groups, open files, and nested group memberships may depend on the current ACL.

Document the current ACL and active dependencies before making broad permission changes.

Tool map

Exactly where to review shares and permissions

File Explorer

Right-click folder → Properties → Sharing / Security

Use Sharing for share-related settings and Security for NTFS permissions.

Advanced Security Settings

Right-click folder → Properties → Security → Advanced

Review owner, inheritance, explicit permissions, inherited permissions, and effective access.

Computer Management

Win + R → compmgmt.msc → System Tools → Shared Folders → Shares / Sessions / Open Files

Review active shares, connected users, sessions, and open files.

Server Manager

Server Manager → File and Storage Services → Shares

Useful for reviewing and managing SMB shares when File and Storage Services is installed.

PowerShell

Start → search PowerShell → Run as administrator when required

Use Get-SmbShare, Get-SmbShareAccess, Get-Acl, and related commands for inspection.

Command Prompt / icacls

Start → search Command Prompt → Run as administrator when required

icacls can inspect and change NTFS permissions. Use changes only after documenting the original state.

Permission layers

Share permissions and NTFS permissions work together

Share permissions

Scope

Network access through the SMB share.

Examples

Read, Change, Full Control.

Share permissions do not replace NTFS permissions.

NTFS permissions

Scope

Files and folders on the disk, including local and network access.

Examples

Read, Write, Modify, Read & execute, Full control, special permissions.

NTFS usually provides the more detailed permission model.

Combined result

Scope

Network users are constrained by both layers.

Examples

If share access is broader than NTFS, NTFS can still restrict the user.

Always inspect both layers when troubleshooting network access.

Common NTFS permissions

Know what each level actually permits

Read

Allows reading file contents and basic folder information.

Read & execute

Allows reading plus executing programs and traversing folders where applicable.

List folder contents

Allows viewing file and folder names inside a directory.

Write

Allows creating files or folders and writing data, depending on the inherited and advanced permissions.

Modify

Typically includes read, write, execute, and delete capabilities without full permission-control authority.

Full control

Includes broad data access plus permission and ownership-related control. Use only when truly required.

Share review

Ten questions before changing file access

01

What share is required by the scenario?

02

What local folder path backs the share?

03

Which users or groups should have network access?

04

Which users or groups should be read-only?

05

Which users or groups need Modify access?

06

Does any application or service account depend on the folder?

07

What share permissions are currently configured?

08

What NTFS permissions are currently configured?

09

Are permissions inherited or explicit?

10

How will access be tested from an authorized client?

PowerShell and command-line inspection

Inventory shares, sessions, and ACLs

List SMB shares

Get-SmbShare | Select-Object Name, Path, Description, Special

Creates an inventory of SMB shares and the paths they expose.

Review one share

Get-SmbShare -Name "ShareName" | Format-List *

Shows detailed properties for a specific SMB share.

Review share permissions

Get-SmbShareAccess -Name "ShareName"

Shows users or groups with Allow or Deny access at the share layer.

Review NTFS ACL

Get-Acl "C:\Path\To\Folder" | Format-List

Shows owner and access-control information for a folder.

Review NTFS entries

(Get-Acl "C:\Path\To\Folder").Access | Select-Object IdentityReference, FileSystemRights, AccessControlType, IsInherited

Creates a readable list of NTFS permission entries.

Review with icacls

icacls "C:\Path\To\Folder"

Shows NTFS permission entries using the built-in command-line tool.

Active SMB sessions

Get-SmbSession | Select-Object ClientComputerName, ClientUserName, NumOpens

Shows current SMB clients and can reveal active dependencies before changes.

Open SMB files

Get-SmbOpenFile | Select-Object ClientComputerName, ClientUserName, Path

Shows files currently open through SMB before disruptive changes.

Inheritance

Understand where permissions come from

Inherited permission

Received from a parent folder. Inheritance helps keep permissions consistent across a tree.

Explicit permission

Assigned directly to the file or folder and may differ from the parent.

Disable inheritance

Stops normal permission inheritance and should be done only when the folder truly needs a different access model.

Convert inherited permissions

Can turn inherited entries into explicit entries, preserving the current access while breaking the inheritance link.

Remove inherited permissions

Can immediately remove access for users and services that depended on the parent permissions.

Permission drift

Too many explicit exceptions make a folder tree difficult to understand and troubleshoot.

Deny guidance

Deny is powerful and easy to misuse

Deny can override Allow

A Deny entry can block access even when another group grants Allow, which makes troubleshooting more complex.

Use groups first

Prefer assigning access to well-defined groups rather than creating many user-specific entries.

Use Deny only when needed

Many environments can achieve least privilege by simply not granting unnecessary access.

Check nested group membership

A user may receive permissions through multiple groups, including nested domain groups.

Effective access

Trace the user's real access from identity to client test

01

Identify the user

Know the exact local or domain identity whose access you are testing.

02

Review group memberships

Identify groups that may grant or restrict access.

03

Review share access

Check whether the identity or one of its groups is allowed or denied at the SMB share layer.

04

Review NTFS access

Check inherited and explicit NTFS permissions on the folder and relevant child objects.

05

Check Deny entries

Look for explicit or inherited Deny entries that may override expected access.

06

Test from the client

Use the actual network path and authorized account to prove the final result.

Secure design examples

Use groups and narrow rights

Read-only department share

All members of a department should read files but only one editing group should modify them.

Approach

Use domain groups for readers and editors, keep permissions group-based, and avoid granting Full Control to ordinary users.

Verify

Test reading with a reader account and creating/editing with an editor account.

Application data folder

A required service account needs Modify access, while normal users should have no direct access.

Approach

Grant the service identity only the rights it needs and avoid broad user-group access.

Verify

Confirm the application still writes data and an unauthorized user cannot browse the folder.

Administrative archive

Administrators need full management rights, while users only need read access.

Approach

Separate administrative and user groups instead of granting Full Control broadly.

Verify

Test with one authorized administrator and one standard user.

Troubleshooting

When file access does not match expectations

Symptom

User can open the share but cannot modify files.

Check

Review share Change/Full Control access, NTFS Modify/Write permissions, inheritance, file-level ACLs, and any Deny entries.

Symptom

User cannot access the share at all.

Check

Confirm the share exists, SMB service is available, firewall permits required access, the user is allowed at the share layer, NTFS permits access, and the network path is correct.

Symptom

Permission changes affected many subfolders unexpectedly.

Check

Review inheritance and whether changes were propagated to child objects. Restore the documented original ACL if needed.

Symptom

A service fails after folder permissions changed.

Check

Review the service account, required folder rights, executable/data paths, and application logs.

Symptom

User appears to have access through multiple groups.

Check

Review direct and nested group membership plus Allow and Deny entries. Use Advanced Security Effective Access when appropriate.

Symptom

Share works locally but not across the network.

Check

Check SMB share configuration, firewall rules, Server service, share permissions, network reachability, and client credentials.

High-risk situations

Permission changes that deserve extra caution

Everyone: Full Control

Broad Full Control can allow users to change permissions, delete data, or alter files beyond what the scenario requires.

Changing ownership casually

Ownership changes can affect permission management and may disrupt applications or administrative workflows.

Breaking inheritance at the top of a tree

A single inheritance change can affect hundreds of child objects.

Deleting built-in or administrative entries

SYSTEM, Administrators, service identities, or application groups may be required.

Closing active SMB sessions blindly

Users may have open files and unsaved work. Review active sessions before disruptive changes.

Using Deny as the first tool

Deny rules are powerful and can create confusing effective-access results.

Decision cases

Permission decisions in server context

Everyone has Full Control on a required share

The TeamDocs share is required, but the broad permission grants more access than the scenario needs.

The share must remain available while excessive privilege should be reduced.

Response

Document current share and NTFS permissions, identify required reader/editor groups, replace broad access with least-privilege group access, and verify from client accounts.

Unknown service account has Modify on application data

The account is not a human user and the folder supports a required application.

The account may be a legitimate application identity.

Response

Confirm the service or application dependency before removing access. Reduce rights only if the application can still function.

One user is denied despite being in an allowed group

The user belongs to Editors but still cannot write.

A Deny entry or more restrictive NTFS permission may override the expected access.

Response

Review both share and NTFS permissions, nested groups, explicit Deny entries, and effective access before changing anything.

Old share appears unused

No one recognizes the share and there are no current sessions.

Lack of active sessions does not prove the share is unnecessary.

Response

Review scenario requirements, application dependencies, historical use, folder contents, service accounts, and permissions before removing it.

Fictional defensive lab

Secure TeamDocs on FILE-SRV

Step 01

Identify the fictional requirement

FILE-SRV hosts the required TeamDocs share. StaffReaders need read access, StaffEditors need modify access, Morgan administers the server, and AppSvc uses a separate application-data folder.

Step 02

Inventory the shares

Use Computer Management, Server Manager, and Get-SmbShare to identify share names, paths, and current clients.

Step 03

Review share permissions

Run Get-SmbShareAccess for TeamDocs and compare the result with the scenario-required groups.

Step 04

Review NTFS permissions

Use the Security tab, Advanced Security, Get-Acl, and icacls to document inherited and explicit permissions.

Step 05

Harden narrowly

Preserve administrative and application dependencies, remove only clearly excessive access, and keep reader/editor rights aligned with the scenario.

Step 06

Verify from clients

Confirm a reader can read but not modify, an editor can modify, Morgan retains administration, AppSvc still works, and an unauthorized user cannot access the share.

Common mistakes

Permission mistakes that break file access

Checking only NTFS permissions

Network access can still fail because share permissions are a second layer.

Checking only share permissions

NTFS permissions may still restrict the user even when the share layer allows access.

Granting Full Control for convenience

Full Control often provides more privilege than users need.

Breaking inheritance without a plan

Large permission trees can become inconsistent and hard to troubleshoot.

Removing service-account access

Applications may fail even though user access looks correct.

Testing only as an administrator

Administrators may have broader rights than normal users, hiding permission problems.

Reflection

Test your permission reasoning

Question 1

Why do network users have to pass both share and NTFS permissions?

Question 2

Why is Full Control usually broader than ordinary users need?

Question 3

How can inheritance simplify permission management?

Question 4

Why can a Deny entry produce unexpected results?

Question 5

What should be checked before removing a service account from a folder ACL?

Question 6

Why should permission verification use standard user accounts instead of only an administrator?

Verification checklist

Confirm least privilege and required access

01

Required SMB shares still exist.

02

Share paths point to the correct folders.

03

Required readers can read.

04

Required editors can modify.

05

Unauthorized users do not have unnecessary access.

06

Administrative access remains intact.

07

Required service accounts still function.

08

No unexpected Deny entry blocks required access.

09

Inheritance behaves as intended.

10

SMB firewall and service dependencies remain healthy.

Competition checklist

Before leaving file-share review

01

Open Computer Management → Shared Folders.

02

Open Server Manager → File and Storage Services → Shares.

03

Run Get-SmbShare.

04

Run Get-SmbShareAccess on required shares.

05

Review folder Security and Advanced Security.

06

Review owner and inheritance.

07

Run Get-Acl or icacls.

08

Check active SMB sessions before disruptive changes.

09

Use groups instead of many user-specific entries.

10

Avoid unnecessary Full Control and Deny.

11

Protect required service-account access.

12

Verify required network access from client accounts.

Next Windows Server lesson

RDP, WinRM & Remote Administration

Next, review remote administrative access, authorized users, firewall exposure, Remote Desktop Services, WinRM, and safe management paths without locking the team out.

Open Lesson 12 →