[Samba] Samba 4.20 ACL issue with FreeBSD (UFS)

Peter Eriksson pen at lysator.liu.se
Tue Apr 22 14:30:35 UTC 2025


> I am now wondering if there is some change to the port which assumes ZFS or similar. In the past it was required to put the sysvol on UFS otherwise it wouldn’t work but times change :)
> 
> Any ideas gratefully received, I guess I can try switching to ZFS but that would be a bit of a PITA I would like to avoid unless necessary.
> 

ZFS ACL handling in Samba 4.20-4.22 on FreeBSD is broken so I’d wait with that…

https://bugzilla.samba.org/show_bug.cgi?id=15847

(Basically some change in source3/smbd/open.c will now trigger a fchmod() call on new files created which will cause the FreeBSD ZFS kernel code to try to mangle the ZFS ACL (that was first inherited from the parent) according to the fchmod() mode bits - which causes the ACL to be “unrecognizable”… I’ve “fixed” it locally by disabling that fchmod() call but this needs more investigation… Samba 4.19 and earlier works fine).

- Peter


> I’ve emailed the FreeBSD porters but haven’t had anything back which changes things.
> 
> Thanks
> 
> --
> Daniel O'Connor
> "The nice thing about standards is that there
> are so many of them to choose from."
> -- Andrew Tanenbaum
> 
> 
> -- 
> 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