How to SYNC Linux and Samba user password

Wednesday, July 2nd, 2008

In order to sync Linux user password and Samba user password, you have to configure PAM. Personally I’m using SLES9 for my testing environment and I have to configure /etc/pam.d/passwd and /etc/pam.d/sshd as following:
password required pam_smbpass.so nullok try_first_pass use_authtok
How to test?
Create a new user called testing
#useradd -m testing
Setup default password
#passwd testing
Create a new samba user
#smbpasswd [...]

How to Configure SLES Linux to track and log failed login attempt records

Tuesday, March 18th, 2008

Did you know how to lock user account after too many login failures?  Under Linux, you can enable this functionality using PAM and faillog.
To provide the account locking functionality, we need to add a PAM module called pam_tally. Basically I’ll show you ‘how to configure track and log failed login attempt records on a SLES Linux [...]