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 [...]