LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 08-24-2008, 07:03 PM   #1
hocheetiong
Member
 
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
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 02:35 PM.

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