I managed to find enough information here to help me get it working: http://www.flatmtn.com/computer/Linux-Samba.html Mike ----- Original Message ----- From: "Igor Debacker" <igor@ccj.ufsc.br> To: <samba@samba.org> Sent: Tuesday, January 28, 2003 3:54 PM Subject: [Samba] pam_mkhomedir.so> where and how can i call this module ? > > is it in /etc/pam.d ? how is the sintax ? > > i'm a suse linux user.. > > > thanx ! > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
On Tue, 2003-01-28 at 15:54, Igor Debacker wrote:> where and how can i call this module ? > > is it in /etc/pam.d ?yes> how is the sintax ?google for pam administrator guide -- Bradley W. Langhorst <brad@langhorst.com>
where and how can i call this module ? is it in /etc/pam.d ? how is the sintax ? i'm a suse linux user.. thanx !
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/
Hi! I'm again here. Samba works and made directory /user for me, but directory /DOMAIN I must still create manually. What's wrong? Thanks. -- 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/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> From: borpeter@post.cz > To: <samba@lists.samba.org> > Date: Wed, 12 Mar 03 10:16:59 +0100 > Subject: [Samba] pam_mkhomedir.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.You should only need to have all users have x permission on /home/DOMAIN (ie chmod a+x /home/DOMAIN should do it).> But this is valid only for ssh > access. Samba still does not create directory /user.As Andrew answered, use "obey restrictions = yes". BTW, you should not need to modify your /etc/pam.d/samba at all if you use the method below:> > 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?Replace your /etc/pam.d/system-auth with the /etc/pam.d/system-auth-winbind that ships with Mandrake. BTW, you can have Mandrake 9.0 setup winbind for you (only available in installation) by doing an expert install, and choosing "Windows Domain" as authentication method in the dialog where you enter the root password. In the dialog where you are propmted for the domain name/username/password to use to join the domain, just enter your domain in capitals (small buglet, should be fixed for 9.1). In this case, you do not need to worry about the /etc/pam.d/system-auth, it is done for you. For more info on winbind setup in Mandrake (with some examples and some configs that you may need to change) see: http://ranger.dnsalias.com/mandrake/samba/Integrating%20Linux%20into%20Windows%20Networks.tar.gz Regards, 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+b0xcrJK6UGDSBKcRAtKbAJ9xWV/lF/Rss0tAIObn1I643sg/hACgqHn4 0XnPjKAEAay4nU620UHi0k4=UGf8 -----END PGP SIGNATURE-----