POSIX ACLs, or Samba acl_xattr ACLs (or both)?

Posted by DeifniteProfessional@reddit | linuxadmin | View on Reddit | 8 comments

I'm tyring to delve deeper into the use of Samba on Linux, specifically for SMB network shares. I've had great success configuring self contained Samba shares where I've used write lists, local users, and Linux groups to manage access. But I want to move up to working with a bigger and more complicated system, where I've linked to a remote active directory server. Everything is working more or less as I expect, but I cannot for the life of me figure out permissions. I've poked around inside a similarly configured Unraid server, and it seems it uses POSIX ACLs for everything. Doesn't seem to be a mention of acl\_xattr VFS extensions, so my assumption is that it's using ACLs directly on the underlying XFS filesystem. So that leads me to the question, is it best just to use Samba as a translation layer between Windows and POSIX ACLs, or use (as well or instead of) Samba's extended attribute based ACLs? I'm not a total newbie when it comes to filesystems, but I appreciate there's gaps in my knowledge, so maybe I'm going down the wrong path, but I'm just trying to understand the "right" or "best" ways to manage such.