[Samba] Winbind login overwrite homedir

basti mailinglist at unix-solution.de
Wed Jul 8 13:30:28 UTC 2020

on my samba AD i have set homedir to /home/users/<username>.

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,

More information about the samba mailing list