[Samba] unix_primary_group = yes don t work

Rowland Penny rpenny at samba.org
Wed Feb 6 15:32:43 UTC 2019


On Wed, 6 Feb 2019 15:58:52 +0100
L.P.H. van Belle <belle at bazuin.nl> wrote:

> Hai Rowland, 
> 
> Thats strange.. my test shows different things. 
> 
> A SSH login, SSO/kerberos on domain member with nfsv4 kerberized
> mounted homedir. Tested samba 4.8.8 and 4.9.4 (members) 
> 
> touch test-for-Rowland
> -rw-r-----   1 louis domain users        0 Feb  6 15:42
> test-for-Rowland
> 
> And i copied this from my w10 pc. 
> -rwxrwx---   1 louis domain users        0 Feb  6 15:42
> test-for-Rowland - kopie
> 
> And a new txt file made from my pc
> -rwxrwx---   1 louis domain users        0 Feb  6 15:45 Nieuw
> tekstdocument for Rowland.txt 
> 
> 

I tested from win10 and got this:

root at testsmb:~# ls -la /home/data
total 16
drwxrwxrwx  2 root    root         4096 Feb  6 15:17 .
drwxr-xr-x  5 root    root         4096 Feb  6 13:42 ..
-rwxrwxr-x+ 1 giduser domain users    0 Feb  6 13:48 test.txt
-rwxrwxr-x+ 1 giduser domain users    0 Feb  6 15:17 wintest.txt
root at testsmb:~# ls -la /home/giduser/test.txt 
-rw-r--r-- 1 giduser unixgroup 0 Feb  6 14:31 /home/giduser/test.txt
root at testsmb:~# getent passwd giduser
giduser:*:10048:10002::/home/giduser:/bin/bash
root at testsmb:~# id giduser
uid=10048(giduser) gid=10002(unixgroup) groups=10002(unixgroup),10000(domain users),3001(BUILTIN\users)

Use Unix tools and the Unix primary group is honoured, use
Samba/Windows and it isn't.

Rowland



More information about the samba mailing list