Disks, shares and NTFS permissions on Windows Server

“Can you give Priya access to the Finance folder?” is probably the ticket a Windows admin sees more than any other. When you get NTFS permissions and share permissions right, that request becomes a two-minute group change rather than a security hole.

You’ll add a data disk to SRV01 and build a Departments share with Finance and IT folders, set permissions with the AGDLP groups from Lesson 12 and check effective access. You’ll also hide folders people can’t open and give Priya a home folder.

TimeYou needBy the end you can
About 75 minutesDC01, SRV01 and CL01 from Lesson 15, and the users and groups from Lesson 12Add and format a disk, create shares, set NTFS permissions with icacls, explain share plus NTFS, check effective access and turn on access-based enumeration

What it is, in one line

NTFS permissions are the rules kept on every file and folder that decide who can read, change or delete it, whether the person is sitting at the server or coming in over the network.

In Simple Words

The building gate and the room locks

To reach a room in an office you go through two checks. The guard at the building gate decides who gets in at all, and then every room has its own lock that your key card may or may not open. The gate is the share permission, which only matters for people coming in over the network, and the room locks are the NTFS permissions, which apply to everyone, even someone already inside. So if the gate says “visitors may only look” and your card fully opens the room, you can still only look, because you always get the stricter of the two.

Engineer's View

ACLs, inheritance, share plus NTFS

ACLs: every NTFS file and folder carries a security descriptor with an owner and a DACL, which is a list of access control entries (ACEs). Each ACE allows or denies one right to a user or group: Full control, Modify, Read & execute, List folder contents, Read, Write, or one of the finer special permissions.

Inheritance: ACEs flow down from parent folders, and flags decide where they land: (OI) object inherit for files and (CI) container inherit for subfolders. Explicit ACEs beat inherited ones, and at the same level a Deny beats an Allow. Break inheritance only at the top of each department folder, never deep inside the tree.

Share plus NTFS: over the network Windows works out the share permission and the NTFS permission separately and gives the user whichever is more restrictive. A common design gives Authenticated Users Change (or Full) on the share and keeps all the real control in NTFS. When someone works locally, only NTFS applies.

Access tokens: group membership is read when the user signs in and kept in their token, so if you add someone to a group they get the access at their next sign-in and not before. Access-based enumeration (ABE) hides the files and folders a user can’t read when they browse a share.

How it works, step by step

When Priya opens a file on SRV01 from CL01, two checks run one after the other:

NTFS permissions and share permissions: the stricter result wins over the network

Both checks look at the groups in Priya’s access token, and this is where AGDLP from Lesson 12 pays off. The folder lists only domain local groups, and you manage people by changing who is in the global groups.

Here’s the folder and permission layout you’ll build on SRV01:

NTFS permissions layout on SRV01: Departments share, Finance, IT and home folders
  1. Disk: add a 20 GB disk, initialise it as GPT and format it NTFS as drive D.
  2. Groups: create GG_IT and DL_ITShare_Modify to match the Finance pair.
  3. Folders: D:\Shares with Finance and IT inside, inheritance broken on each department folder.
  4. Share: one share, Departments, with ABE on.
  5. Test as Priya from CL01, and check effective access.
  6. Home folder: a hidden Home$ share with a private folder for Priya.

Hands-on Lab: NTFS permissions and shares on SRV01

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

SRV01 needs to be shut down for step 1, because you add the disk from your laptop. Everything after that happens on SRV01 as SAATLAB\Administrator in PowerShell as administrator.

1Add a 20 GB data disk to SRV01

On your laptop, with SRV01 powered off:

VBoxManage storagectl SRV01 --name SATA --portcount 4
VBoxManage createmedium disk --filename C:\Lab\VMs\SRV01\SRV01-data.vdi --size 20480
VBoxManage storageattach SRV01 --storagectl SATA --port 2 --device 0 --type hdd --medium C:\Lab\VMs\SRV01\SRV01-data.vdi
VBoxManage startvm SRV01

On SRV01, bring the new disk online as drive D:

Get-Disk | Where-Object PartitionStyle -eq 'RAW' |
    Initialize-Disk -PartitionStyle GPT -PassThru |
    New-Partition -DriveLetter D -UseMaximumSize |
    Format-Volume -FileSystem NTFS -NewFileSystemLabel Data -Confirm:$false

You should see something like this:

DriveLetter FriendlyName FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining     Size
----------- ------------ -------------- --------- ------------ ----------------- -------------     ----
D           Data         NTFS           Fixed     Healthy      OK                     19.92 GB 19.98 GB

GPT is the modern partition style and supports disks over 2 TB and lots of partitions, which the old MBR style can’t. You’ll also come across ReFS on servers; it’s built for large volumes and Hyper-V, but file shares mostly still use NTFS.

✅ Checkpoint: Drive D: labelled Data exists on SRV01 with about 20 GB.

2Create the IT groups the AGDLP way

On SRV01 (the AD module is there from Lesson 13):

$g = 'OU=Groups,OU=SAATLAB,DC=saatlab,DC=internal'
New-ADGroup -Name GG_IT -GroupScope Global -GroupCategory Security -Path $g
New-ADGroup -Name DL_ITShare_Modify -GroupScope DomainLocal -GroupCategory Security -Path $g
Add-ADGroupMember GG_IT -Members rahul.verma, sneha.reddy
Add-ADGroupMember DL_ITShare_Modify -Members GG_IT
Get-ADGroupMember DL_FinanceShare_Modify -Recursive | Select-Object -ExpandProperty SamAccountName

You should see something like this:

arjun.rao
meena.iyer
priya.sharma

✅ Checkpoint: GG_IT and DL_ITShare_Modify exist, and the Finance resource group still resolves to the three Finance users.

3Create the folders and set NTFS permissions

On SRV01, run this:

New-Item -ItemType Directory D:\Shares\Finance, D:\Shares\IT | Out-Null
icacls D:\Shares /inheritance:r /grant:r "SYSTEM:(OI)(CI)F" "BUILTIN\Administrators:(OI)(CI)F" "Authenticated Users:RX"
icacls D:\Shares\Finance /inheritance:r /grant:r "SYSTEM:(OI)(CI)F" "BUILTIN\Administrators:(OI)(CI)F" "SAATLAB\DL_FinanceShare_Modify:(OI)(CI)M"
icacls D:\Shares\IT /inheritance:r /grant:r "SYSTEM:(OI)(CI)F" "BUILTIN\Administrators:(OI)(CI)F" "SAATLAB\DL_ITShare_Modify:(OI)(CI)M"
icacls D:\Shares\Finance

You should see something like this:

D:\Shares\Finance NT AUTHORITY\SYSTEM:(OI)(CI)(F)
                  BUILTIN\Administrators:(OI)(CI)(F)
                  SAATLAB\DL_FinanceShare_Modify:(OI)(CI)(M)

Successfully processed 1 files; Failed processing 0 files

Here’s how to read the codes: F is Full control, M is Modify and RX is Read & execute, and (OI)(CI) means the entry flows down to files and subfolders. Authenticated Users:RX on D:\Shares has no flags, so it applies to that folder only and people can open the top level and see what’s in it, nothing more.

/inheritance:r removes the inherited entries so the drive’s default permissions, which let any user create folders, don’t leak in. That leaves each department folder with exactly three entries.

✅ Checkpoint: icacls shows SYSTEM, Administrators and the department’s DL group on each folder, and nothing inherited.

4Share it, with access-based enumeration

On SRV01, run this:

New-SmbShare -Name Departments -Path D:\Shares -FullAccess 'SAATLAB\Domain Admins' -ChangeAccess 'NT AUTHORITY\Authenticated Users' -FolderEnumerationMode AccessBased
Get-SmbShareAccess -Name Departments | Select-Object AccountName, AccessControlType, AccessRight

You should see something like this:

AccountName                      AccessControlType AccessRight
-----------                      ----------------- -----------
SAATLAB\Domain Admins            Allow             Full
NT AUTHORITY\Authenticated Users Allow             Change

The share lets every signed-in user through the gate with Change and leaves the rest to NTFS. -FolderEnumerationMode AccessBased turns on ABE, so people only see the folders they can open.

✅ Checkpoint: The Departments share exists with Domain Admins Full and Authenticated Users Change.

5Test as Priya from CL01

Start CL01, sign in as SAATLAB\priya.sharma and open an ordinary PowerShell window.

Run this:

Get-ChildItem \\SRV01\Departments | Select-Object -ExpandProperty Name
'Q3 budget draft' | Set-Content \\SRV01\Departments\Finance\budget.txt
Get-ChildItem \\SRV01\Departments\Finance | Select-Object Name, Length
whoami /groups | Select-String 'Finance'

You should see something like this:

Finance

Name       Length
----       ------
budget.txt     17

SAATLAB\GG_Finance                Group            S-1-5-21-...-1112 Mandatory group, Enabled by default, Enabled group
SAATLAB\DL_FinanceShare_Modify    Alias            S-1-5-21-...-1113 Mandatory group, Enabled by default, Enabled group

Priya only sees Finance, because ABE hides IT from anyone with no access to it. She can write in Finance since her token holds both groups, and you’ll notice whoami lists domain local groups as “Alias”.

✅ Checkpoint: Priya lists only Finance, creates budget.txt, and whoami shows both Finance groups.

NTFS permissions lab: Priya sees only Finance and saves a file
Thanks to ABE, Priya sees only the Finance folder, and her Modify rights let her save a file.

6Check effective access on the server

On SRV01, open File Explorer, right-click D:\Shares\IT, choose Properties, Security, Advanced, then the Effective Access tab. Click Select a user, enter priya.sharma, and click View effective access.

Every row has a red cross, because Priya has no access to IT. Try the same for sneha.reddy and you’ll see Modify rights through GG_IT. This tab tells you why someone can or can’t open something, without you having to sign in as them.

✅ Checkpoint: Effective Access shows no rights for Priya on IT and Modify for Sneha.

7Give Priya a home folder

On SRV01, create a hidden share for home folders, plus Priya’s own folder:

New-Item -ItemType Directory D:\Home\priya.sharma -Force | Out-Null
icacls D:\Home /inheritance:r /grant:r "SYSTEM:(OI)(CI)F" "BUILTIN\Administrators:(OI)(CI)F" "Authenticated Users:RX"
icacls D:\Home\priya.sharma /inheritance:r /grant:r "SYSTEM:(OI)(CI)F" "BUILTIN\Administrators:(OI)(CI)F" "SAATLAB\priya.sharma:(OI)(CI)F"
New-SmbShare -Name 'Home$' -Path D:\Home -FullAccess 'NT AUTHORITY\Authenticated Users' -FolderEnumerationMode AccessBased
Set-ADUser priya.sharma -HomeDrive 'H:' -HomeDirectory '\\SRV01\Home$\priya.sharma'

The $ at the end of the share name keeps it out of browsing lists. Sign Priya out of CL01 and back in, open File Explorer and you’ll find drive H: pointing at her own folder.

If you set the home folder in Active Directory Users and Computers instead, it creates the folder and sets these permissions for you. Roaming profiles, which copy the whole user profile to a share, are an older feature, and most companies have moved to Folder Redirection or OneDrive, which you’ll set up with Group Policy in Lesson 20.

✅ Checkpoint: Priya has an H: drive after signing in again, and only she (plus admins) can open her folder.

When you’re done, take snapshots of SRV01 and CL01 called “Shares ready”.

'SRV01','CL01' | ForEach-Object { VBoxManage snapshot $_ take "Shares ready" }

Break It, Then Fix It

These are two permission puzzles that keep helpdesk queues full. Keep Priya signed in to CL01 and SRV01 open.

1Break it: the gate is stricter than the lock

On SRV01, make the share read-only for everyone:

Grant-SmbShareAccess -Name Departments -AccountName 'NT AUTHORITY\Authenticated Users' -AccessRight Read -Force

On CL01, as Priya, try to save a new file in Finance:

'Q4 forecast' | Set-Content \\SRV01\Departments\Finance\forecast.txt

You’ll get an error like this:

Set-Content : Access to the path '\\SRV01\Departments\Finance\forecast.txt' is denied.
At line:1 char:17
+ 'Q4 forecast' | Set-Content \\SRV01\Departments\Finance\forecast.txt
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (\\SRV01\Departm...e\forecast.txt:String) [Set-Content], UnauthorizedAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.SetContentCommand

NTFS still gives Priya Modify, and Effective Access on the folder would tell you so because that tab only looks at NTFS. Over the network, though, the share now allows only Read, and the stricter result wins. So when NTFS looks right and access still fails, check the share as well.

To fix it, set the share permission back to Change:

Grant-SmbShareAccess -Name Departments -AccountName 'NT AUTHORITY\Authenticated Users' -AccessRight Change -Force

✅ Checkpoint: Saving failed with share Read and works again with share Change.

2Break it: added to the group, still denied

On SRV01, add Priya to the IT group:

Add-ADGroupMember GG_IT -Members priya.sharma

On CL01, still in Priya’s same session:

Get-ChildItem \\SRV01\Departments\IT

You’ll get an error like this:

Get-ChildItem : Access to the path '\\SRV01\Departments\IT' is denied.
At line:1 char:1
+ Get-ChildItem \\SRV01\Departments\IT
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (\\SRV01\Departments\IT:String) [Get-ChildItem], UnauthorizedAccessException
    + FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand

AD has the change, but Priya’s access token was built when she signed in, before you added her. Run whoami /groups and you won’t find GG_IT, and it’s the token the server checks, not AD.

To fix it, sign Priya out of CL01 and back in, then try again:

whoami /groups | Select-String 'GG_IT'
Get-ChildItem \\SRV01\Departments | Select-Object -ExpandProperty Name

You should see something like this:

SAATLAB\GG_IT                     Group            S-1-5-21-...-1114 Mandatory group, Enabled by default, Enabled group
Finance
IT

With the new token she has GG_IT, so IT opens and shows up in the list. For network shares, klist purge and a fresh connection often does the job without signing out, but signing out is the dependable answer to give users. Afterwards, take Priya out of GG_IT with Remove-ADGroupMember GG_IT -Members priya.sharma -Confirm:$false.

✅ Checkpoint: IT was denied until Priya signed in again, then appeared and opened.

NTFS permissions lab: access denied from share Read and from an old access token
Both denials: the share was set to Read, and later Priya’s token didn’t yet include GG_IT.

This happened at work

The salary folder everyone could read

An HR assistant asked for somewhere to keep salary review spreadsheets. A helpdesk technician made a “Salaries” folder at the top of the company’s departments share, right beside HR, and gave the HR group Modify on it. What he didn’t do was break inheritance, and the top of the share had “Authenticated Users: Read” flowing down to everything, so every employee could open the salary files. Access-based enumeration made it worse, because the folder showed up for everyone, since everyone could read it.

It stayed like that for a month, until a curious intern stumbled on it. The investigation went through the folder’s auditing logs to find out who had opened the files, and HR had a very long week.

The fix: the top-level permissions were changed to “this folder only”, the same way you set D:\Shares. Now new department folders are only created by a script that sets explicit permissions, and a monthly report lists any folder where Authenticated Users or Everyone have more than list access.

The lesson: look at what a new folder inherits as well as what you added. Effective Access for an ordinary user would have shown the problem in ten seconds.

Common mistakes and troubleshooting

Mistake or symptomWhat happensWhat to do instead
NTFS gives Modify but users can only read over the networkThe share permission is stricterCheck Get-SmbShareAccess; share Change for Authenticated Users, control in NTFS
Added to a group, still “Access is denied”The old token has no new groupSign out and in (or reboot for computer groups)
Granting permissions to individual usersHard to audit and clean upDomain local groups on folders, AGDLP
Not breaking inheritance at department foldersBroad access from the root flows downRemove inheritance at the top of each department folder
Using Deny to fix a mistakeHard to understand; can block admins and groups unexpectedlyRemove the wrong Allow instead; Deny only for rare cases
Everyone: Full control on NTFSAnyone can delete or encrypt everythingLeast privilege; Modify only where needed
Moving data with Explorer and losing permissionsCopies inherit the destination’s ACLUse robocopy /copyall or /sec when permissions must move
Users see folders they can’t openConfusion and ticketsTurn on access-based enumeration
Home folders shared without restricted NTFSUsers can browse each other’s foldersOne folder per user, inheritance off, only that user plus admins

Interview questions

Click a question to open it. Each one is phrased the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.

Fresher level

1. Can you explain the difference between share permissions and NTFS permissions in simple words?

Why they ask this: Nearly every access ticket comes down to this, so they want to be sure you have the basics of file access.

How you might answer: Share permissions only apply when someone comes in over the network, while NTFS permissions apply both locally and over the network. When you open a share over the network both get checked and the more restrictive one wins.

2. What does inheritance mean on a Windows folder?

Why they ask this: They want to know you understand how permissions flow down, so you can predict who gets access to new files.

How you might answer: Permissions set on a folder flow down to its files and subfolders unless inheritance is turned off. If I put explicit permissions on one item, they add to or override what it inherited.

3. A user calls and says, “You added me to the group ten minutes ago, but I still can’t open the folder.” What’s going on?

Why they ask this: They want to see that you understand access tokens, which explains many “it still doesn’t work” calls.

How you might answer: Group membership goes into the user’s access token when they sign in, and the token they have now was made before I added them. So I’d ask them to sign out and back in, and then it should work.

2–5 years experience

4. A manager asks exactly what access one user has to a finance folder. How would you find out for sure?

Why they ask this: They want to see that you know the real tools and check every layer instead of one ACL.

How you might answer: I’d start with the Effective Access tab in Advanced Security Settings, then look at the ACL with Get-Acl or icacls and the user’s groups with Get-ADPrincipalGroupMembership. I’d also check the share permissions with Get-SmbShareAccess, since they can limit access even when NTFS allows it.

5. You’re asked to set up shared folders for every department. How would you design the permissions?

Why they ask this: They want to see that you plan a clean structure that is easy to manage and audit later.

How you might answer: I’d make one share with Access-Based Enumeration on and give Authenticated Users Change on it, then break inheritance at each department folder. Every folder gets domain local groups for Read and Modify with the global role groups nested inside, and no user accounts go directly on the ACLs.

6. You need to move a big folder to a new file server and keep all its permissions. How would you do it?

Why they ask this: They want to know if you have migrated data before and know how to keep security intact.

How you might answer: I’d use robocopy with /copyall or /sec, plus /mir if I need a mirror, and make sure the same groups exist so the permissions still mean something. Afterwards I’d compare permissions with icacls. If it was a whole server move, I’d look at Storage Migration Service instead.

Senior level

7. A department says file access is slow and sometimes inconsistent. Permissions look fine. What else could it be, and how would you check?

Why they ask this: They want to see that you think beyond permissions and know the other common causes.

How you might answer: It could be token bloat from too many groups, DFS sending them to a far-away server, SMB signing or encryption overhead, antivirus scanning or the disk itself. To narrow it down I’d check token size, the SMB client and server logs, performance counters and the DFS referrals.

8. Legal asks you to show who opened or deleted files in a sensitive folder last month. How would you set that up?

Why they ask this: They want to check that you know how file auditing works and how to make it useful, not just noisy.

How you might answer: I’d turn on Audit File System through Group Policy and add SACL entries on the sensitive folders, so Windows logs event 4663, and 4660 for deletes. Then I’d collect those events centrally and alert on anything unusual. It only covers the time after auditing was switched on, so it has to be in place beforehand.

9. Your team is building new volumes. When would you choose ReFS instead of NTFS?

Why they ask this: They want to see that you know your storage options and pick them for a reason.

How you might answer: I’d pick ReFS for large Hyper-V or backup volumes and for Storage Spaces Direct, where integrity streams and fast cloning help a lot. For general file shares and boot volumes, NTFS is still what most people use.

Quick quiz

Q1. Over the network, share says Read and NTFS says Modify. What does the user get?

  1. Modify
  2. Read
  3. Full control
Show answer

B — The more restrictive result wins.

Q2. What does (OI)(CI) mean in icacls output?

  1. Owner Inherit, Child Inherit
  2. The entry flows to files and subfolders
  3. The entry is denied
Show answer

B — Object inherit and container inherit.

Q3. Why couldn’t Priya open IT right after joining GG_IT?

  1. Replication was slow
  2. Her token was built before the change
  3. ABE hid it
Show answer

B — Sign out and in to get a new token.

Q4. What does access-based enumeration do?

  1. Encrypts files
  2. Hides items a user can’t read
  3. Speeds up the share
Show answer

B — Users only see what they can open.

Q5. In the work story, what caused the leak?

  1. A virus
  2. The new folder inherited Authenticated Users Read
  3. The share was hidden
Show answer

B — Nobody checked what the folder inherited.

Quick recap

  • NTFS permissions are ACLs on files and folders; share permissions only apply over the network, and the stricter one wins.
  • Use icacls with /inheritance:r at the top of each department folder and grant domain local groups.
  • One share, Authenticated Users Change, all real control in NTFS, ABE on.
  • Group changes need a new token: sign out and in.
  • Effective Access answers “what can this person do here?”
  • Home folders: a hidden Home$ share and one private folder per user.

Next lesson

Lesson 17: File services: DFS, FSRM and shadow copies → You’ll create a DFS namespace so users reach shares by one path, replicate a folder between two servers, set quotas and file screens with FSRM, and restore a deleted file with shadow copies.

Further reading: NTFS permissions

Want to go further with NTFS permissions? Microsoft’s icacls command reference explains every permission code, and the New-SmbShare reference covers share options. The full plan for this course is on the Windows Server Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.