[Samba] unix_primary_group not used when writing files
Rowland Penny
rpenny at samba.org
Wed Aug 17 12:31:38 UTC 2022
On Wed, 2022-08-17 at 12:31 +0100, Matthew Richardson via samba wrote:
> I have a samba server (v4.13.17 - Ubuntu 20.04) set up joined to an
> AD
> domain, with the following idmap config:
>
> [global]
> workgroup = MYDOM
> realm = MYDOM.EXAMPLE.COM
> security = ads
> idmap config * : backend = tdb
> idmap config * : range = 3000 - 9999
> idmap config MYDOM : backend = ad
> idmap config MYDOM : schema_mode = rfc2307
> idmap config MYDOM : range = 10000 - 9999999
> idmap config MYDOM : unix_primary_group = yes
> idmap config MYDOM : unix_nss_info = yes
> winbind use default domain = yes
>
> All users in the domain have the unix attributes set (gidNumber,
> loginShell etc). There is also a group with the same gid as the
> user's
> gidNumber, and that user is a member of that group.
>
> This shows up fine using the nss commands, e.g.:
>
> $ getent passwd alice
>
> alice:*:12345:12345:Alice Smith:/home/alice:/bin/bash
>
> $ getent group alice
>
> alice:x:12345:
>
> $ groups alice
>
> alice : alice domain users
How have you managed to have a user called 'alice' and a group called
'alice' ?
Rowland
More information about the samba
mailing list