Rowland Penny
2022-Aug-17 12:52 UTC
[Samba] unix_primary_group not used when writing files
On Wed, 2022-08-17 at 13:36 +0100, Matthew Richardson via samba wrote:> Apologies - I anonymised the real user values and put 'alice' in as > the > group by mistake - it should say 'g_alice'.Okay, lets try again :-) Did you add 'alice' to the group 'g_alice' ? If so, how ? You posted this: $ getent group g_alice g_alice:x:12345: Which doesn't show any users, but you also posted this: $ groups alice alice : g_alice domain users Which does show 'alice' is a member of the 'g_alice' group (if I have changed it correctly). Rowland
Matthew Richardson
2022-Aug-17 15:41 UTC
[Samba] unix_primary_group not used when writing files
I have subsequently worked out that to get 'getent group' to show users I need to add the following to smb.conf: winbind expand groups = 1 This now gives: $ getent group g_alice g_alice:x:12345:alice However even with this setting and having restarted samba etc the files are still group 'domain user'. (I also played with setting 'winbind nested groups' which has no effect). Don't know if that helps steer the debugging/solving of the bigger issue? Thanks, Matthew On 17/08/2022 13:52, Rowland Penny via samba wrote:> This email was sent to you by someone outside the University. > You should only click on links or attachments if you are certain that the email is genuine and the content is safe. > > On Wed, 2022-08-17 at 13:36 +0100, Matthew Richardson via samba wrote: >> Apologies - I anonymised the real user values and put 'alice' in as >> the >> group by mistake - it should say 'g_alice'. > > Okay, lets try again :-) > > Did you add 'alice' to the group 'g_alice' ? > If so, how ? > > You posted this: > > $ getent group g_alice > > g_alice:x:12345: > > Which doesn't show any users, but you also posted this: > > $ groups alice > > alice : g_alice domain users > > Which does show 'alice' is a member of the 'g_alice' group (if I have > changed it correctly). > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/sambaThe University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th? ann an Oilthigh Dh?n ?ideann, cl?raichte an Alba, ?ireamh cl?raidh SC005336.