i’m hoping someone can help me understand ACLs better in the context of zfs and smb.
my experience with acls has been limited to using getfacl/setfacl in linux on ext4 and btrfs to get more flexibility than the classic linux permissions give.
i just switched to openzfs on linux. i was using truenas core before, and i’m trying to figure how i want to set things up.
i have three main use cases:
- i run various things in docker and have different containerized apps running as different users/groups. i have them bind mount a communal ‘app ecosystem’ zfs dataset for persistent storage of large files (not their configs/dbs), and i want more granular control over fs permissions than what classic linux permissions offer.
- i have another dataset that i want to use for smb – mostly macOS clients. each member of my family will have his or her own account
- i will also have a dataset for my family’s macOS time machine backups i guess also over smb
fwiw, i am using xattr=sa and atime=off on my datasets
part of my confusion is i’ve heard of at least two acl systems: posix and nfsv4
questions:
- when i use
getfacl/setfaclin linux, what ‘system’ of acls am i using? - consider the zfs props documented here
aclinherit=discard|noallow|restricted|passthrough|passthrough-xaclmode=discard|groupmask|passthrough|restrictedacltype=off|nfsv4|posix- i’ve read the man pages over and over but can’t figure out how to use these because i don’t understand the implications.
- how might i set these zfs props, and what system of ACLs would i use for use case 1 (docker)?
- similarly, how might i set things up for use cases 2–3 (smb)?
could someone explain this stuff to me? also, if my question is unclear, i’ll try to explain better. thanks