User Permission Overwrite Group Permissin on Linux

Saturday, August 16th, 2008

This is a tricky question when my customer ask me why he can’t change certain on his home folder.
Said for an example:
I have a username: john with primary group finance running on one of the Linux server.
$id john
uid=1008(john) gid=1002(finance) groups=1002(finance)
$pwd
/home/john
$ls -l aug2008.txt
-r-rw-r– 1 john finance [...]

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