VFS_ACL_XATTR(8)

πŸ’– NAME πŸ’–

vfs_acl_xattr β€” bestie, this one saves NTFS-ACLs into Extended Attributes (EAs) πŸ’…


✨ SYNOPSIS ✨

vfs objects = acl_xattr

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so first thing, this VFS module is part of the samba(7) suite β€” she's literally family 🫢

This module was made for systems that do not support standardized NFS4 ACLs and only have a deprecated POSIX ACL draft implementation instead. (Yeah. Deprecated. We don't love that for us πŸ™ˆ) This is usually the case on Linux systems, no cap. Systems that do support NFSv4 ACLs just use those directly instead of this module β€” that support is usually provided by the filesystem VFS module specific to the underlying filesystem that supports NFS4 ACLs.

So what does vfs_acl_xattr actually do? She stores NTFS Access Control Lists (ACLs) in Extended Attributes (EAs) πŸŽ€ and that's the whole vibe. This enables the full mapping of Windows ACLs on Samba servers even if the ACL implementation is not capable of doing so. Iconic honestly.

The NT ACLs are stored in the security.NTACL extended attribute of files and directories, in a form containing the Windows SID representing the users and groups in the ACL. Now listen β€” this is different from the uid and gids stored in local filesystem ACLs, and the mapping from users and groups to Windows SIDs must be consistent in order to maintain the meaning of the stored NT ACL. (Consistency is the moment, bestie. Keep it consistent or the whole thing loses its meaning 😭)

Also real talk: that extended attribute is not listed by the Linux command getfattr -d filename. To show the current value, the name of the EA must be specified, like this:

getfattr -n security.NTACL filename

She also forces these parameters, no negotiation:

  • inherit acls = true
  • dos filemode = true
  • force unknown acl user = true

And lastly β€” this module is stackable πŸ₯žβœ¨


πŸ’… OPTIONS πŸ’…

  • acl_xattr:security_acl_name = NAME β€” This one lets you redefine the default location for the NTACL extended attribute (xattr). If it's not set, NTACL xattrs get written to security.NTACL, which is a protected location β€” meaning the content of the security.NTACL attribute is not accessible from normal users outside of Samba πŸ”’. But the second you set this option to a user-defined value, like user.NTACL, then any user can potentially access and overwrite this information 😳. The module does prevent access to this xattr over SMB, but the xattr may still be accessed by other means (eg local access, SSH, NFS). So this option must only be used when this consequence is clearly understood and when specific precautions are taken to avoid compromising the ACL content. Like, fr fr, read that twice 🚨
  • acl_xattr:ignore system acls = [yes|no] β€” When set to yes, a best effort mapping from/to the POSIX draft ACL layer will not be done by this module. The default is no, which means Samba keeps setting and evaluating both the system ACLs and the NT ACLs β€” that's the better move if you need your system ACLs be set for local or NFS file access, too. But if you only access the data via Samba, you might set this to yes to achieve better NT ACL compatibility πŸ‘‘

Heads up though: if acl_xattr:ignore system acls is set to yes, these additional settings get enforced, periodt:

  • create mask = 0666
  • directory mask = 0777
  • map archive = no
  • map hidden = no
  • map readonly = no
  • map system = no
  • store dos attributes = yes
  • acl_xattr:default acl style = [posix|windows|everyone] β€” This parameter determines the type of ACL that is synthesized in case a file or directory lacks an security.NTACL xattr. So like, when there's no xattr, what do we make up? That's the question she's answering πŸ’­
    • posix β€” an ACL will be synthesized based on the POSIX mode permissions for user, group and others, with an additional ACE for NT Authority\SYSTEM will full rights.
    • windows β€” an ACL is synthesized the same way Windows does it, only including permissions for the owner and NT Authority\SYSTEM.
    • everyone β€” an ACL is synthesized giving full permissions to everyone (S-1-1-0). Everybody gets everything, main character energy for the whole group chat 🌈

The default for this option is posix.


πŸ‘‘ AUTHOR πŸ‘‘

The original Samba software and related utilities were created by Andrew Tridgell 🫢 Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. Community-built and thriving, we love to see it πŸ’œ


And that's the whole page, bestie!! This was Samba 4.24.7-Ubuntu-4.24.7+dfs, dated 09/13/2026 β€” from the System Administration tools corner of the manual πŸ’–βœ¨ Go forth and set those ACLs, you absolute icon πŸŽ€

πŸ“¦ where this page comes from