[Samba] Winbind login overwrite homedir
rpenny at samba.org
Wed Jul 8 13:39:03 UTC 2020
On 08/07/2020 14:30, basti via samba wrote:
> on my samba AD i have set homedir to /home/users/<username>.
I take it you mean 'in' AD and not in the DC's smb.conf
> Now i have setup a linux client with pam-winbind and nss-winbind.
> getent passwd <username> show /home/users/<username> as home directory.
> And that's dir is create on login.
> Why it is use the path set on AD and not the path set in smb.conf ?
> grep home -r /etc/pam.d/ /etc/samba/smb.conf /etc/security/pam_winbind.conf
> /etc/pam.d/common-session:session optional pam_mkhomedir.so
> /etc/samba/smb.conf: template homedir = /home/%U
> /etc/security/pam_winbind.conf:# create homedirectory on the fly
> /etc/security/pam_winbind.conf:mkhomedir = yes
> I would prefer /home/%U at this client.
> Best regards,
Please post the [global] portion of your smb.conf
Can you also post the contents of /etc/nsswitch.conf
More information about the samba