When I log on with an NT user to a Linux machine via winbind, I get complaints about no home directory and wind up in / The docs don't mention this at all. How to fix? -- John Oliver, CCNA http://www.john-oliver.net/ Linux/UNIX/network consulting http://www.john-oliver.net/resume/ *** sendmail, Apache, ftp, DNS, spam filtering *** **** Colocation, T1s, web/email/ftp hosting ****
John H Terpstra
2003-Jan-15 20:51 UTC
[Samba] Winbind authenticated users - no home directory
On Wed, 15 Jan 2003, John Oliver wrote:> When I log on with an NT user to a Linux machine via winbind, I get > complaints about no home directory and wind up in / The docs don't > mention this at all. How to fix?This is a Linux issue, not a samba issue! Configure PAM for login so that it has pam_mkhomedir.so in the right place. eg: auth requisite pam_securetty.so auth requisite pam_nologin.so auth optional pam_env.so auth sufficient pam_winbind.so auth sufficient pam_pwdb.so shadow nullok use_first_pass account required pam_pwdb.so nodelay audit account sufficient pam_winbind.so session required pam_mkhomedir.so session required pam_pwdb.so nodelay password required pam_pwdb.so shadow md5 - John T. -- John H Terpstra Email: jht@samba.org
Buchan Milne
2003-Jan-16 09:50 UTC
[Samba] Winbind authenticated users - no home directory
> Message: 13 > Date: Wed, 15 Jan 2003 11:48:43 -0800 > From: John Oliver <joliver@john-oliver.net> > To: samba@samba.org > Subject: [Samba] Winbind authenticated users - no home directory > > When I log on with an NT user to a Linux machine via winbind, I get > complaints about no home directory and wind up in / The docs don't > mention this at all. How to fix?Setup pam_mkhomedir. See this example (which can be used to replace /etc/pam.d/system-auth, at least on Mandrake) http://cvs.samba.org/cgi-bin/cvsweb/samba/packaging/Mandrake/system-auth-winbind.pamd?rev=1.2&content-type=text/x-cvsweb-markup Ensure that the parent directory of the users home does exist, pam_mkhomedir doesn't make deep directories. If you want samba to make home directories via pam_mkhomedir, you need to set 'obey pam restrictions = yes' in your smb.conf. More winbind examples (configs for Mandrake 9.0 and RH 8.0, plus a presentation and some notes): http://ranger.dnsalias.com/mandrake/samba/Integrating%20Linux%20into%20Windows%20Networks.tar.gz Of course, knowing which distro you are using and what steps you took or which docs you followed would help. Buchan -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7