[Samba] unix_primary_group not used when writing files

Rowland Penny rpenny at samba.org
Thu Aug 18 14:13:59 UTC 2022


On Thu, 2022-08-18 at 13:50 +0100, Matthew Richardson via samba wrote:
> > Can we see your entire smb.conf, sanitised if you must.
> 
> Found it! Decided to go over the config and sanitise it, but also
> toggle
> all the options that I wasn't certain of to see if they were
> relevant.
> 
> If I comment out the following, then the file is group owned g_alice
> -
> with it there, it's 'domain users':
> 
> vfs objects = acl_xattr
> 
> No idea if this is expected behaviour though - from reading the docs
> it
> sounds like this is a setting we would want to have, but I'm more
> than
> happy to be told we don't need it and to leave it off!

I think you have found a bug.

The 'ad' idmap config line: 

unix_primary_group = yes

means use the users gidNumber group as its primary group on Unix
computers, so, in my opinion, vfs_acl_xattr should take this into
account and doesn't seem to.

Would you like to open a bug report ?

Rowland





More information about the samba mailing list