Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-24-2008, 07:03 PM   #1
Registered: Jul 2007
Location: Penang , Malaysia.
Distribution: red hat linux
Posts: 133

Rep: Reputation: 15
Smile 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.
Old 08-25-2008, 05:57 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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:
  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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help = sync samba - user and password luzyS Linux - Newbie 4 06-06-2008 11:07 PM
samba(global security=user) useful tools for client.ex: user change password. hocheetiong Linux - Newbie 1 03-18-2008 09:20 AM
how to configure linux to boot automatic without enter username&password? hocheetiong Linux - Newbie 2 11-19-2007 04:46 AM
Samba - Linux Password Sync with LDAP rbulman Linux - Networking 1 10-26-2006 05:56 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration