[Samba] change user home
L.P.H. van Belle
belle at bazuin.nl
Fri Nov 1 09:49:01 MDT 2013
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
>
>
More information about the samba
mailing list