[Samba] change user home
rowlandpenny at googlemail.com
Fri Nov 1 07:20:03 MDT 2013
On 01/11/13 12:23, Marc Muehlfeld wrote:
> Am 01.11.2013 13:17, schrieb Rowland Penny:
>> If it is the S4 server using winbind then you are stuck, the
> > home directory path is hard coded and cannot be
>> changed if you use winbind.
> Hardcoded is not fully correct.
> With "winbind nss info = template", the path can be changed at least
> global for all accounts through "template homedir ="
> And if you let winbind retrieve the information from AD via rfc2307,
> you can have individual pathes for every account.
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:
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
More information about the samba