Web lists-archives.com

Re: [Samba] unix_primary_group = yes don t work




On Wed, 6 Feb 2019 16:40:42 +0100
"L.P.H. van Belle via samba" <samba@xxxxxxxxxxxxxxx> wrote:

> 
> > -----Oorspronkelijk bericht-----
> > Van: samba [mailto:samba-bounces@xxxxxxxxxxxxxxx] Namens 
> > Rowland Penny via samba
> > Verzonden: woensdag 6 februari 2019 16:33
> > Aan: samba@xxxxxxxxxxxxxxx
> > Onderwerp: Re: [Samba] unix_primary_group = yes don t work
> > 
> > On Wed, 6 Feb 2019 15:58:52 +0100
> > L.P.H. van Belle <belle@xxxxxxxxx> 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@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@testsmb:~# ls -la /home/giduser/test.txt 
> > -rw-r--r-- 1 giduser unixgroup 0 Feb  6 14:31 /home/giduser/test.txt
> 
> > root@testsmb:~# getent passwd giduser
> > giduser:*:10048:10002::/home/giduser:/bin/bash
> 
> > root@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.
> 
> My guess here. 
> That is because of misconfiguration of the base of the users homedir
> 
> You need 1700 or 3700 on /home/data  
> Can you try that. 

OK, tried that, it locked me out until I used setfacl, same result,
adding a file used the Windows primary group.

Rowland
 


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba