NTFS (New Technology File System) ist ein proprietäres Dateisystem von Microsoft für alle Betriebssysteme der Windows-NT-Reihe (ab 1993).
Die effektivsten Berechtigungen eines Users ergeben sich aus der Kombination aller Gruppen- und Benutzerberechtigungen.
Eine „Deny“ Regel ist stärker als eine „Allow“ (Erlauben) Regel.
| Permission | Meaning for Folders | Meaning for Files |
|---|---|---|
| Read | Permits viewing and listing of files and subfolders | Permits viewing or accessing of the file’s contents |
| Write | Permits adding of files and subfolders | Permits creating files and writing to a file |
| Read & Execute | Permits viewing and listing of files and subfolders as well as executing of files; inherited by files and folders | Permits viewing and accessing of the file’s contents as well as executing the file |
| List Folder Contents | Permits viewing and listing of files and subfolders as well as executing of files; inherited by folders only | N/A |
| Modify | Permits reading and writing of files and subfolders; allows deletion of the folder | Permits reading, writing and renaming of the file; allows deletion of the file |
| Full Control | Permits reading, writing, changing, and deleting of files and subfolders | Permits reading, writing, changing, and deleting of the file |
| Permission | Read | Write | List folder content | Read & Execute | Modify | Full Control |
|---|---|---|---|---|---|---|
| Traverse folder/Execute File | X | X | X | X | ||
| List folder/Read data | X | X | X | X | X | |
| Read attributes | X | X | X | X | X | |
| Read extended attributes | X | X | X | X | X | |
| Create files/Write data | X | X | X | |||
| Create folders/Append data | X | X | X | |||
| Write attributes | X | X | X | |||
| Write extended attributes | X | X | X | |||
| Delete subfolders and files | X | |||||
| Delete | X | X | ||||
| Read permissions | X | X | X | X | X | |
| Change permissions | X | |||||
| Take ownership | X |
Die effektiven Berechtigungen werden aus SMB (Share) Berechtigungen und NTFS Berechtigungen ermittelt. Dabei gelten die restriktivsten Berechtigungen.
Siehe auch NTFSSecurity
$str = Get-NTFSAccess \\fileserver\gbi\it-security | convertto-json $obj = $str | convertfrom-json $obj | foreach-object { $acc = $_.Account.AccountName $rights = ((Get-NTFSAccess \\fileserver\gbi\it-security -Account $_.Account.AccountName).AccessRights) Write-output "$($_.FullName);$($acc);$($rights);$($_.IsInherited);$($_.InheritedFrom -replace 'UNC', '\')" }