[Samba] unix_primary_group = yes don t work

Rowland Penny rpenny at samba.org
Wed Feb 6 16:36:36 UTC 2019


On Wed, 6 Feb 2019 17:18:51 +0100
"L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:

> Hmm, Yes Rowland it test also failed. 
> 
> id louis
> uid=10002(louis) gid=10000(domain users) groups=10000(domain
> users),27(sudo),10004(servers-ssh),10008(servers-www)
> 
> louis at mailhopper2:~$ getent passwd louis
> obell:*:10002:10000:L.P.H. van Belle:/home/users/louis:/bin/bash
> 
> The difference here is all my users have "Domain users" as primary
> group. Just like in windows, that the difference between our
> config/setups. 
> 

If your users have 'gidNumber: 10000' in their object and '10000' is
the gidNumber for 'Domain Users', then you do not actually need the
gidNumber in the users object and the 'unix_primary_group = yes' line
in smb.conf.

Rowland



More information about the samba mailing list