[Samba] getent group not working

Rowland Penny rpenny at f2s.com
Wed Aug 8 10:21:24 MDT 2012


On 08/08/12 16:58, Jonathan Buzzard wrote:
> On 08/08/12 15:13, Rowland Penny wrote:
>> On 08/08/12 14:45, Jonathan Buzzard wrote:
>>> On 08/08/12 13:36, Rowland Penny wrote:
>>>
>>> [SNIP]
>>>
>>>>
>>>> More info, with 'winbind use default domain = yes' in smb.conf on the
>>>> client, 'getent group linuxusers' returns the info. Remove 'winbind 
>>>> use
>>>> default domain = yes' from smb.conf and restart nmbd,smbd & winbind,
>>>> 'getent group linuxusers' now returns nothing, put the line back &
>>>> restart the daemons and the info comes back.
>>>>
>>>> Why does one line in smb.conf make such a big difference?
>>>>
>>>
>>> Remove it and do a 'getent group HOME\\linuxusers' and see if that
>>> works. Should explain why you need the user default domain in there.
>>>
>>> JAB.
>>>
>> ok, I removed the line and ran 'getent group HOME\\linuxusers'
>> This returned 'HOME\linuxusers:x:3000012:', this is just the same as
>> before but with the domain name stuck on the front, 'getent group' still
>> returns nothing.
>> So as I see it, with ''winbind use default domain = yes' in smb.conf,
>> you do not need to give the domain name, but without it you do.
>> I still do not see why 'getent group' does not return anything but local
>> groups.
>>
>
> You did make sure to nuke any DB's that Samba might have created 
> locally when switching between the two?
>
> JAB.
>
Well no I didn't, but I have now, and it did not make any difference, 
exactly the same set of results.

Why does 'getent group' on the samba4 server return all the users (local 
& domain) and 'getent group' from 3.6.3 on the client only return local 
users?

Rowland

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the samba mailing list