Would it not be easier to just add users using the following script: Cat /etc/passwd | mksmbpasswd > /etc/smbpasswd After this you can just do: Smbpasswd userid Then it will ask for the password. Input the password. This will now setup the password in /etc/smbpasswd as an encrypted password. Now do smbpasswd -e userid. This should now enable that userid. For more security you can now delete out any and all users out of the /etc/smbpasswd file that are not needed. Hope this helps. -----Original Message----- From: Josep Gaspar [mailto:jgaspar@perti.com] Sent: Friday, September 28, 2001 3:33 PM To: suse-linux-e@suse.com Subject: RE: [SLE] Samba as PDC: My first time That's probably the reason you are having login problems. To use SMB encrypted passwords you must use pam_smb. Dont think there is any other way. I'm currently using SuSE 7.2, but I bet this package is also available in 7.1 distribution.do the following to configure it : - Run Yast,and install pam_smb package. You can find it under N (Network) Serie. - Edit /etc/pam.d/samba write in this line auth required /lib/security/pam_smb_auth.so - Edit /etc/pam_smb.conf as follows 1st file line -> YOUR_DOMAIN_NAME ( Your domain name ) 2nd file line -> PDC_SERVER_NAME ( Your PDC server name ) 3rd file line -> BDC_SERVER_NAME ( if applicable, if not, just blank ) - Add to smb user database all users you want to be able to log in to samba with smbadduser UNIX_USERNAME:SMB_USER_NAME - Finally, make sure that client's registry does NOT contain EnablePlainTextPassword = 1 At this point, you should be able to login in normally from any configured windoze box In case SuSE 7.1 didnt include pam_smb package, you can grab it here http://rpmfind.net/linux/SuSE-Linux/i386/7.1/full-names/i386/ hope it helps, Regards, Josep Gaspar -----Mensaje original-----
If you're using encrypted passwords make sure that /etc/pam.d/samba includes this line :
auth required /lib/security/pam_smb_auth.so
Keep in mind that this PAM module *only* supports Authentification management. Logon will fail if you try to use this module in any other management area.
My /etc/pam.d/samba does not include that line, moreover I do not have any "/lib/security/pam_smb_auth.so" in my system. I am using Suse 7.1, with the standard samba 2.0.7 Praise -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com