Lesson 17 of 60 intermediate

Share vs NTFS & Access Troubleshooting

Why ‘I have no access’ is never one-layer simple

Open interactive version (quiz + challenge)

Real-world analogy

Accessing a shared folder is like passing two gates to enter a building: the parking gate (share permission) and the office door (NTFS permission). Both must let you through, and the stricter one decides what you can actually do once inside.

What is it?

Share and NTFS permissions are two independent access gates. Enterprise file access respects both. Juniors who can explain and debug this layer cleanly are immediately more senior than juniors who cannot.

Real-world relevance

A new hire in Finance can open \\fs01\Finance but cannot edit a specific subfolder. Junior checks share → OK. NTFS → discovers a Deny ACE on that subfolder targeting a legacy group the user is still in. Removes legacy group from user → access normalizes.

Key points

Code example

// Access-denied troubleshooting order

1) Confirm identity
   whoami
   whoami /groups    # which groups are effective for THIS token?

2) If groups changed recently
   Log off / log on (or reboot) to refresh the Kerberos token.

3) Check share permissions
   \\server\share  -> right-click -> Properties -> Sharing -> Advanced Sharing
   -> Permissions

4) Check NTFS permissions
   Folder -> Properties -> Security
   -> Advanced -> Effective Access -> enter user/group

5) Look for Deny ACEs
   Deny beats Allow. Remove the group causing the deny
   rather than granting individual user permissions.

6) Confirm the path
   Correct server? Correct share? DFS referral sane?
   net use \\server\share  (or) dfsutil

Line-by-line walkthrough

  1. 1. Access-denied triage
  2. 2. Step 1 — confirm identity
  3. 3. whoami for login check
  4. 4. whoami /groups for token view
  5. 5. Blank separator
  6. 6. Step 2 — token refresh after group change
  7. 7. Blank separator
  8. 8. Step 3 — inspect share permissions
  9. 9. Path and path to share permissions
  10. 10. Blank separator
  11. 11. Step 4 — inspect NTFS permissions
  12. 12. Use the Effective Access tool
  13. 13. Blank separator
  14. 14. Step 5 — hunt Deny ACEs
  15. 15. Prefer group redesign over user-level Allows
  16. 16. Blank separator
  17. 17. Step 6 — confirm the path
  18. 18. Validate server and share and DFS referral

Spot the bug

User Alice is in 'G-HR' group with Modify NTFS on \\fs01\HR.
She can read but not write.
Admin keeps adding 'Alice' directly with Full Control; it still doesn’t work.
Need a hint?
What two things could still block her write?
Show answer
(1) Share permission may be Read only at the share level (NTFS Modify is capped by stricter share Read). (2) A Deny ACE further up the tree may target a group Alice is still in. Fix: set share to Change/Full for Authenticated Users, rely on NTFS; remove the Deny or remove Alice from the conflicting group. Refresh token by logoff/logon.

Explain like I'm 5

There are two locks on the door. One is out in the parking lot (share), one is on the office door (NTFS). You need BOTH to let you in. If either says ‘no,’ you’re not getting in.

Fun fact

The AGDLP model solves 90% of ‘access denied’ support tickets by design. Shops that skip it end up with thousands of ACL entries that nobody dares clean up — and their audit reports show it.

Hands-on challenge

Create two folders on a VM or your home machine. Set one’s NTFS ACL to give your test user Read; set share to Full Control. Set the other’s share to Read; NTFS to Modify. Access both as the test user. Note the effective access in each case.

More resources

Open interactive version (quiz + challenge) ← Back to course: IT Jobs Bootcamp