[Samba] vfs_zfsacl in debian samba repo

Piotr Maksymiuk movikun at gmail.com
Fri Jan 15 15:42:24 UTC 2021

Actually ignore that request. I read more into the code and I don't care about nfsv4acl, all my datasets use posix acls. I was trying to replicate how this behaves on truenas, but it may be more than a missing vfs. In fact they use some custom-made modules[1] specifically for that purpose. Maybe with the advent of TrueNAS Scale and it's usage of ZOL, they'll submit some stuff upstream

That said, there's still the issue of vfs_acl_xattr. The moment i turn it on, samba stops respecting the the setgid flag, and creates files/directories with the primary group of the user. Is that the intended behaviour? (The clients are MacOS 11)

Relevant config follows

	disable spoolss = Yes
	dns proxy = No
	load printers = No
	log file = /var/log/samba/log
	logging = systemd
	max log size = 1000
	mdns name = mdns
	pam password change = Yes
	panic action = /usr/share/samba/panic-action %d
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	passwd program = /usr/bin/passwd %u
	printcap name = /dev/null
	server string = %h server
	fruit:nfs_aces = no
	fruit:model = TimeCapsule
	fruit:aapl = yes
	idmap config * : backend = tdb
	create mask = 0664
	directory mask = 0775
	dos filemode = Yes
	printing = bsd
	use sendfile = Yes
	access based share enum = Yes
	case sensitive = Yes
	ea support = No
	force create mode = 0664
	force directory mode = 0775
	hide special files = Yes
	inherit acls = Yes
	inherit permissions = Yes
	path = /mnt/HDD/Media/
	read only = No
	store dos attributes = No
	vfs objects = catia fruit streams_xattr acl_xattr	fruit:resource = xattr
	fruit:metadata = netatalk
	fruit:encoding = native


(Resending since I used the wrong email, sorry)

> On 15 Jan 2021, at 10:18, L.P.H. van Belle via samba <samba at lists.samba.org> wrote:
> Hai, 
> I'll have a good look and if i can i'll add it
> but as far i can see its not ready yet to build on linux. 
> https://github.com/openzfs/zfs/pull/9709
> https://github.com/openzfs/zfs/pull/7728
> Greetz, 
> Louis
>> -----Oorspronkelijk bericht-----
>> Van: Piotr Maksymiuk [mailto:piotr.maksymiuk at movishell.pl]
>> Verzonden: woensdag 13 januari 2021 9:23
>> Aan: L.P.H. van Belle
>> Onderwerp: vfs_zfsacl in debian samba repo
>> Hi
>> I recently switched to OpenZFS. Would it be possible to include vfs_zfsacl
>> in samba-vfs-modules? It should probably be build against the packages in
>> buster-backports as that's where the Debian wiki specifies to get the
>> necessary packages
>> Cheers,
>> Peter
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list