[Samba] pam_mkhomedir.so

borpeter at post.cz borpeter at post.cz
Wed Mar 12 09:16:59 GMT 2003


Hi!

This error appears as answer to browse home directory from WinXP
on Samba server2.27 on Mandrake9.0: 'Can't change directory to
/home/DOMAIN/user (No such file or directory)'

Here is my etc/pam.d/samba :
#%PAM-1.0
auth sufficient /lib/security/pam_winbind.so
auth required /lib/security/pam_nologin.so
auth required /lib/security/pam_stack.so service=system-auth
account sufficient /lib/security/pam_winbind.so
account required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_mkhomedir.so skel=/etc/skel/
umask=0022  session required /lib/security/pam_stack.so
service=system-auth
password required /lib/security/pam_stack.so service=system-auth

Here is my etc/pam.d/sshd :
#%PAM-1.0
auth sufficient /lib/security/pam_winbind.so
auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so
account sufficient /lib/security/pam_winbind.so
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session optional /lib/security/pam_mkhomedir.so skel=/etc/skel/
umask=0022  session required /lib/security/pam_stack.so
service=system-auth
session required /lib/security/pam_limits.so
session optional /lib/security/pam_console.so

Problem is how to setup samba for automatic home directory
creating. Maybe smb.conf is incorrect, but if I create home
directory manually, samba log me in without problems.

Second question.Computers in network are under W2k PDC. Everytime
I try to login into Mandrake via putty(ssh) and I'm not as local
user (on mandrake) but I'm domain user, pam_mkhomedir.so writes
this:'Can't change directory to /home/DOMAIN/user (No such file
or directory)'. But if I manually create directory /DOMAIN under
/home and change mode for /DOMAIN to 777 then directory /user
will be create automatically. But this is valid only for ssh
access. Samba still does not create directory /user.

So. I need to setup auto creat of directory:/home/DOMAIN/user for
each service.

Next question is, if is possible to configure all of services
(login, telnet, ftp, ssh, samba, kde...) centrally in one file or
somewhere. Or it is not possible?

Thanks.

Peter.

-- 
Ziskejte kvalitu, kterou si zasluhujete. Za minimalni mesicni
poplatek vam nabizime Antivir, Antispam nebo dalsi kapacitu pro
vas Mailbox. Vice na: http://sluzby.volny.cz/product/postpaid/



More information about the samba mailing list