NTFSSECAUDIT(8)
โจ NAME โจ
okay bestie, meet ntfssecaudit ๐ (the manual page for ntfssecaudit(8)) and it's all about NTFS Security Data Auditing ๐ฅ
๐ SYNOPSIS ๐
ntfssecaudit [options] args
Where options is a combo of these ๐:
-aโ full auditing of security data (Linux only) ๐-bโ backup ACLs ๐พ-eโ setting extra backed-up parameters (goes with-s) โจ-hโ displaying hexadecimal security descriptors saved in a file ๐งพ-rโ recursing in a directory ๐-sโ setting backed-up ACLs ๐ ๏ธ-uโ getting a user mapping proposal ๐ซถ-vโ verbose (very verbose if you set it twice) ๐ข
And args defines the parameters and the set of files that get acted upon ๐ฆ
Typing secaudit with no args will show you a summary of the available options ๐
๐ธ DESCRIPTION ๐ธ
okay so ntfssecaudit shows you the ownership and permissions of a set of files on an NTFS file system, and checks that they're consistent ๐
It can only be run in terminal mode, because there's no graphical user interface, so no fancy windows here ๐ฅฒ
When a volume is needed, it has to be unmounted first, and the command has to be issued as root ๐ The volume can be either a block device (like a disk partition) or an image file ๐
When you're acting on a directory or volume, this command can spit out a LOT of information ๐ญ So it's highly advisable to redirect the output to a file, or pipe it into a text editor so you can actually read it ๐
๐ OPTIONS ๐
Here are the valid combos of options and arguments that ntfssecaudit accepts ๐ Every indicated argument is mandatory and must be unique. If you use wildcards, they have to resolve to a single name, no exceptions ๐
โโ๏ธ
-h fileโ Shows, in a human readable form, the hexadecimal security descriptors saved infile๐งพ This is how you can turn a verbose output into a very verbose one ๐ข-a[rv] volumeโ Audits the volume ๐ All the global security data on the volume gets scanned and errors get displayed. Add-rand every file and directory gets scanned too, and their relations to the global security data get checked. Heads up, this can produce a lot of data ๐
This option does nothing on volumes formatted for old NTFS versions (pre NTFS 3.0), because those volumes have no global security data ๐ฅฒ
If errors pop up, it's a good idea to repair the volume with an appropriate tool, like chkdsk on Windows ๐ง
[-v] volume fileโ Displays the security parameters offileโจ That means its interpreted Linux mode (rwx flags in octal) and its Posix ACL[1], its security key if it has one, and its security descriptor if you're in verbose mode ๐-r[v] volume directoryโ Shows the security parameters of all files and subdirectories indirectory๐ You get their interpreted Linux mode (rwx flags in octal) and Posix ACL[1], their security key if any, and their security descriptor if verbose output is on ๐ฆ-b[v] volume [directory]โ Recursively extracts the NTFS ACLs of files involumeanddirectoryto standard output ๐พ-s[ev] volume [backup-file]โ Sets the NTFS ACLs as indicated inbackup-fileor standard input ๐ ๏ธ The input data must have been created on Linux, bestie, no exceptions ๐ง With-e, it also sets extra parameters (currently Windowsattrib) โจvolume perms fileโ Sets the security parameters offiletoperms๐ฏpermsis either the Linux requested mode (rwx flags, written in octal form likechmod) or a Posix ACL[1] (written likesetfacl -m). This sets a new ACL that's effective for both Linux and Windows ๐ซถ-r[v] volume perms directoryโ Sets the security parameters of all files and subdirectories indirectorytoperms๐permsis the Linux requested mode (rwx flags, octal form likechmod), or a Posix ACL[1] (written likesetfacl -m). This sets new ACLs that are effective for both Linux and Windows ๐[-v] mounted-fileโ Displays the security parameters ofmounted-file๐ That's its interpreted Linux mode (rwx flags in octal) and Posix ACL[1], its security key if any, and its security descriptor if you're verbose. This one's a special case that acts on a mounted file (or directory) and does NOT need root ๐ The Posix ACL interpretation only shows up if you give the full path tomounted-filefrom the root of the global file tree ๐ณ-u[v] mounted-fileโ Displays a proposed content for a user mapping file ๐ซถ It's based on the ownership parameters Windows set onmounted-file, assuming this file was created on Windows by the user who should get mapped to the current Linux user ๐ช Copy the displayed info into the file.NTFS-3G/UserMapping, where.NTFS-3Gis a hidden subdirectory at the root of the partition you want the mapping for ๐ง Once that's done, files created on that partition will be owned the same way as the originalmounted-file๐
๐ NOTE ๐
[1] This works provided the POSIX ACL option was selected at compile time ๐ ๏ธ A Posix ACL specification looks like "[d:]{ugmo}:[id]:[perms],...", where id is a numeric user or group id, and perms is an octal digit or a set from the letters r, w and x ๐ธ
Example: "u::7,g::5,o:0,u:510:rwx,g:500:5,d:u:510:7" ๐
๐งช EXAMPLES ๐งช
Audit the global security data on /dev/sda1 ๐
ntfssecaudit -ar /dev/sda1
Display the ownership and permissions parameters for files in the directory /audio/music on device /dev/sda5, excluding sub-directories ๐ต
ntfssecaudit /dev/sda5 /audio/music
Set all files in the directory /audio/music on device /dev/sda5 as writeable by the owner and read-only for everybody else ๐
ntfssecaudit -r /dev/sda5 644 /audio/music
๐ฆ EXIT CODES ๐ฆ
ntfssecaudit exits with a value of 0 when no error was detected ๐ฅณ and with a value of 1 when an error was detected ๐
๐ KNOWN ISSUES ๐
Please peek at this page for common questions and known issues ๐
https://github.com/tuxera/ntfs-3g/wiki/NTFS-3G-FAQ/
If you find a new one in the latest release of the software, send an email describing it in detail ๐ You can contact the development team at ntfs-3g-devel@lists.sf.net ๐ซถ
๐ฉโ๐ป AUTHORS ๐ฉโ๐ป
ntfssecaudit has been developed by Jean-Pierre Andrรฉ ๐
๐ THANKS ๐
Several people made heroic efforts, often over five or more years, which resulted in the ntfs-3g driver ๐ญ The most important ones are Anton Altaparmakov, Richard Russon, Szabolcs Szakacsits, Yura Pakhuchiy, Yuval Fledel, and the author of the groundbreaking FUSE filesystem development framework, Miklos Szeredi ๐โจ
๐ SEE ALSO ๐
ntfsprogs(8), attr(5), getfattr(1) ๐ฆ
Okay that's a wrap, bestie ๐ This was ntfssecaudit version 1.5.0 from February 2010, and it's still giving main character energy ๐๐
๐ฆ where this page comes from
- arch rolling: ntfsprogs 2026.9.28-1 ยท GPL-2.0-or-later
- debian bookworm: ntfs-3g 1:2022.10.3-1+deb12u3 ยท GPL-2.0-or-later
- debian trixie: ntfs-3g 1:2022.10.3-5+deb13u2 ยท GPL-2.0-or-later
- debian trixie: ntfs-3g 1:2022.10.3-5+deb13u3 ยท GPL-2.0-or-later
- epel 10: ntfsprogs 2:2026.2.25-2.el10_3 ยท GPL-2.0-or-later
- epel 9: ntfsprogs 2:2022.10.3-13.el9 ยท GPL-2.0-or-later
- fedora 43: ntfsprogs 2:2022.10.3-10.fc43 ยท GPL-2.0-or-later
- fedora 43: ntfsprogs 2:2026.2.25-2.fc43 ยท GPL-2.0-or-later
- fedora 44: ntfsprogs 2:2022.10.3-12.fc44 ยท GPL-2.0-or-later
- fedora 44: ntfsprogs 2:2026.2.25-1.fc44 ยท GPL-2.0-or-later
- nixos 26.05: ntfs3g 2026.9.18
- nixpkgs unstable: ntfs3g 2026.9.28
- opensuse-leap 16.0: ntfs-3g 2022.10.3-160000.5.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: ntfs-3g 2022.10.3-160000.5.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: ntfs-3g 2022.10.3-160000.5.1 ยท GPL-2.0-or-later
- opensuse-leap 16.0: ntfs-3g 2022.10.3-160000.5.1 ยท GPL-2.0-or-later
- ubuntu jammy: ntfs-3g 1:2021.8.22-3ubuntu1 ยท GPL-2.0-or-later
- ubuntu jammy: ntfs-3g 1:2021.8.22-3ubuntu1.4 ยท GPL-2.0-or-later
- ubuntu noble: ntfs-3g 1:2022.10.3-1.2ubuntu3 ยท GPL-2.0-or-later
- ubuntu noble: ntfs-3g 1:2022.10.3-1.2ubuntu3.2 ยท GPL-2.0-or-later
- ubuntu questing: ntfs-3g 1:2022.10.3-5
- ubuntu questing: ntfs-3g 1:2022.10.3-5ubuntu0.25.10.1 ยท GPL-2.0-or-later
- ubuntu resolute: ntfs-3g 1:2022.10.3-5build1 ยท GPL-2.0-or-later
- ubuntu resolute: ntfs-3g 1:2022.10.3-5ubuntu1.1 ยท GPL-2.0-or-later
- ubuntu stonking: ntfs-3g 1:2026.7.7-2 ยท GPL-2.0-or-later
- Copyright (c) 2007-2016 Jean-Pierre Andrรฉ
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms