[Samba] change user home

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


.. 

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

then, i'll have to wait until sernet-samba 4.1 is ready.. 

:-)) nice work guys. 




>-----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
>
>



More information about the samba mailing list