getent gives different info

Rowland Penny repenny at f2s.com
Tue Aug 21 07:10:46 MDT 2012


On 21/08/12 13:49, Gémes Géza wrote:
> 2012-08-21 13:21 keltezéssel, Rowland Penny írta:
>> Hi, can somebody explain to me why Samba 4 getent returns different 
>> info compared to Samba 3.6.3?
>>
>> If I run the command 'getent passwd student1' on the Samba 4 server I 
>> get:
>>
>> HOME\student1:*:3000039:3000036::/home/HOME/student1:/bin/bash
>>
>> But the same command on a Samba 3.6.3 client gives:
>>
>> student1:*:3000039:3000036::/home2/students/7a/student1:/bin/bash
>>
>> I understand the addition of the domain at the start of the Samba 4 
>> info line, but why does it return a different (and incorrect) home 
>> directory? All the info returned by Samba 3.6.3 is correct.
>>
>> Rowland
>>
>>
>>
> Hi,
>
> The difference is caused by the different behavior of winbind from 
> samba3 and the winbind integrated into the samba binary from samba4. 
> The latter doesn't support retrieving homes and shells from the 
> directory and relies on the template homedir and template shell 
> variable instead. Andrew Bartlett said this behavior will be changed 
> (repaired) only after samba4 will be released in a (hopefully not too 
> far) point release.
>
> Regards
>
> Geza Gemes
>
>
Thanks, also I take it that when you say template homedir and template 
shell, you mean the lines that can be added to smb.conf.

Rowland


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



More information about the samba-technical mailing list