[Samba] change user home

L.P.H. van Belle belle at bazuin.nl
Fri Nov 1 09:54:31 MDT 2013


Ok, did read again the last messages. 

 winbindd --version  ?  .. and internal winbindd of samba 4 or running winbindd. ? 

if internal, then, i'll have to wait until sernet-samba 4.1 is ready.. 
and i know its about 2-3 weeks. :-)) nice work guys.  
will be patient.. 

it's clear to me. 

Greetz, 

Louis


>-----Oorspronkelijk bericht-----
>Van: belle at bazuin.nl [mailto:samba-bounces at lists.samba.org] 
>Namens L.P.H. van Belle
>Verzonden: vrijdag 1 november 2013 16:49
>Aan: samba at lists.samba.org
>Onderwerp: Re: [Samba] change user home
>
>Good info, 
>
>just 1 question. 
>
>Om my DC, the "template shell"  works when i change that,
>so why can i change the "template shell" but not the homedir. 
>thats strang i.m.h.o.  and confusing.. 
>
>for me its clear. ill make a symlink from  /home/DOMAIN /home/users
>so everything keeps working. 
>
>Thank you this info.
>
>Louis
>
>>-----Oorspronkelijk bericht-----
>>Van: Marc Muehlfeld [mailto:samba at marc-muehlfeld.de] 
>>Verzonden: vrijdag 1 november 2013 16:40
>>Aan: Rowland Penny; L.P.H. van Belle; samba at lists.samba.org
>>Onderwerp: Re: [Samba] change user home
>>
>>Hello Rowland,
>>
>>Am 01.11.2013 14:20, schrieb Rowland Penny:
>>> According to 'man smb.conf' on the S4 server, "winbind nss info =
>>> template" is the default, so does not need to be added. If you add
>>> 'template homedir = /home/%U' to smb.conf and restart 
>>samba4, then run
>>> 'getent password rowland' you get this:
>>>
>>> HOME\rowland:*:10000:100:Rowland Penny:/home/%U:/bin/bash
>>>
>>> Yep, you get a literal %U, how does this differ from 'the 
>>home directory
>>> is hard coded' if winbind does not recognise %U as the place 
>>to put the
>>> username?
>>
>>Here it works like expected and described in the manpage. %U 
>>is resolved 
>>into the username:
>>
>># grep "template home" /etc/samba/smb.conf
>>      template homedir = /home/%U
>>
>># getent passwd muehlfeld
>>muehlfeld:*:1061:513::/home/muehlfeld:/bin/false
>>
>>
>>And if I change the path:
>>
>># grep "template home" /etc/samba/smb.conf
>>      template homedir = /home/someTestString/%U
>>
>># getent passwd muehlfeld
>>muehlfeld:*:1061:513::/home/someTestString/muehlfeld:/bin/false
>>
>>
>>
>># winbindd --version
>>Version 4.1.0
>>
>>
>>
>>Regards,
>>Marc
>>
>>
>
>-- 
>To unsubscribe from this list go to the following URL and read the
>instructions:  https://lists.samba.org/mailman/options/samba
>
>



More information about the samba mailing list