LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ntfs-3g.secaudit

NTFS security data auditing tool

TLDR

Audit all security data on a volume recursively
$ sudo ntfs-3g.secaudit -ar [/dev/sda1]
copy
Display permissions for files in a directory
$ sudo ntfs-3g.secaudit [/dev/sda1] [/path/to/directory]
copy
Recursively display permissions in a directory
$ sudo ntfs-3g.secaudit -r [/dev/sda1] [/path/to/directory]
copy
Backup ACLs from a volume and directory to a file
$ sudo ntfs-3g.secaudit -b [/dev/sda1] [/path] > [backup.txt]
copy
Restore ACLs from a backup file
$ sudo ntfs-3g.secaudit -s [/dev/sda1] < [backup.txt]
copy
Get a user mapping proposal
$ sudo ntfs-3g.secaudit -u [/dev/sda1] [/path/to/windows/file]
copy

SYNOPSIS

ntfs-3g.secaudit -a[rv] volumentfs-3g.secaudit -b[v] volume [directory]ntfs-3g.secaudit -s[ev] volume [backup-file]ntfs-3g.secaudit -r[v] volume directoryntfs-3g.secaudit -u[v] volume mounted-filentfs-3g.secaudit -h filentfs-3g.secaudit volume directory

DESCRIPTION

ntfs-3g.secaudit displays the ownership and permissions of files on an NTFS file system and checks their consistency. It can audit security data, backup and restore ACLs, and propose user mappings. The volume must be unmounted and the command must be run as root.

PARAMETERS

-a

Audit all global security data on the volume. Combine with -r to also scan all files and directories.
-b
Recursively extract NTFS ACLs to standard output for backup purposes.
-s
Set NTFS ACLs from a backup file or standard input. Combine with -e to also restore extra parameters (Windows attrib).
-e
Used with -s to set extra backed-up parameters.
-r
Recurse into subdirectories. With -a, checks file relations to global security data.
-u
Display a proposed user mapping file based on Windows ownership of a mounted file.
-h _file_
Display hexadecimal security descriptors from a saved file in human-readable form.
-v
Verbose output. Use twice for very verbose output.

CAVEATS

Requires root privileges. The volume must be unmounted before use. Output should be redirected to a file for large directory operations. Returns 0 on success and 1 when errors are detected.

HISTORY

ntfs-3g.secaudit is part of the ntfs-3g project, providing security audit and ACL management functionality for NTFS filesystems on Linux.

SEE ALSO

Copied to clipboard
Kai