LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2006, 09:42 PM   #1
gtjmn308
LQ Newbie
 
Registered: Mar 2006
Posts: 16

Rep: Reputation: 0
Sync Samba and Linux passwords


Hi all,

I've done a million google searches to try and find the solution to my problem, which is:

I have installed the latest version of Redhat Enterprise Linux
I simply want to sync samba passwords to linux passwords for all users.

There has to be a simple solution to this. I just can't find it.

At the end of the day, the only thing that seems to work is to use passwd to change Linux passwords, and then use smbpasswd to manually keep the two in sync.

Any ideas anyone?


Thanks in advance,

Greg.
 
Old 04-04-2006, 10:22 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You can do it the other way and have Samba sync with Linux. There's some info at http://us1.samba.org/samba/docs/using_samba/ch09.html, search for Password Synchronization. The settings I've added to my /etc/samba/smb.conf are:
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*
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sync MySQL passwords with local account passwords? turbine216 Linux - Software 2 02-18-2005 03:15 AM
Global Samba/Linux passwords mrsolo Linux - Networking 2 02-23-2004 12:12 AM
Sync user/group passwords?! jhewitt Linux - Newbie 1 02-12-2004 07:28 PM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM
Samba passwords cic Linux - Networking 3 08-13-2002 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration