T The Triage ManualTechnical Guides for IT Emergencies
P2 · Windows Server

NTFS Permissions Broken — Access Denied After Migration, Inheritance Change or Ownership Loss

Users receive 'Access is denied' on file shares or local folders after a server migration, permission inheritance was disabled accidentally, or ownership has been transferred to an unknown SID from a previous domain. NTFS and share permissions are evaluated independently — access is the more restrictive intersection of both.

Indicators

Likely causes

Diagnostic steps

  1. Check effective permissions: right-click folder > Properties > Security > Advanced > Effective Access — select a specific user or group to see what they can actually do
  2. List ACL with icacls: icacls "C:\path\to\folder" — look for unresolved SIDs (S-1-5-21-...) indicating orphaned permissions from old domain accounts
  3. Check share permissions separately: net share <sharename> or Get-SmbShareAccess -Name <sharename> — share perms and NTFS perms stack; effective access = most restrictive
  4. Take ownership if locked out (run as local admin from elevated prompt): takeown /F "C:\path" /R /D Y then icacls "C:\path" /grant "BUILTIN\Administrators:(OI)(CI)F" /T
  5. Reset inheritance to restore default inherited permissions: icacls "C:\path" /reset /T /C — caution: this removes explicit ACEs, use on correct path only
  6. After domain migration: use ADMT (Active Directory Migration Tool) SID history mapping, or use SetACL to translate old-domain SIDs to new-domain equivalents in bulk

Resolution path

Prevention

Tools

ntfspermissionsaccess-deniedicaclsaclinheritanceownershipfile-servermigrationwindows-server