LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to configure when change a linux user password than automatic sync samba passwd. (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-when-change-a-linux-user-password-than-automatic-sync-samba-passwd-665109/)

hocheetiong 08-24-2008 08:03 PM

how to configure when change a linux user password than automatic sync samba passwd.
 
Hi, i have create a linux user name "alex" than i also create a samba username "alex" smbpasswd -a alex . if this user want to change his samba password than must change both: passwd and smbpasswd . How to configure when change the Linux password (passwd) than automatic sync the smbpasswd(samba password)? Thank you.

gilead 08-25-2008 06:57 PM

I don't know how to sync it that way, but you can set it up the other way by modifying your /etc/samba/smb.conf file with these entries (customise them for your system) with Samba 3.0.30:
Code:

  smb passwd file = /etc/samba/smbpasswd
  unix password sync = yes
  passwd program = /usr/bin/passwd %u
  passwd chat = *New*password* %n\n *new*password* %n\n *Password*changed*

With this method, when the user uses smbpasswd, the passwd program is also called.


All times are GMT -5. The time now is 12:20 AM.