LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-12-2011, 12:38 AM   #1
packets
Member
 
Registered: Oct 2005
Posts: 280

Rep: Reputation: 30
how to sync samba password


I just installed samba to two servers. One is the primary and the other one acting as backup.

My passdb backend is tdbsam. So I have passdb.tdb and
secrets.tdb. I tried to cp and overwrite the pssdb.tdb and secrects.tdb on the backup server. However, when I restart smb, it seems that it was not working anymore with the ff relevant error:

Code:
Sep 12 12:45:00 test_server smbd[23918]: [2011/09/12 12:45:00, 0] lib/util_tdb.c:tdb_log(664)
Sep 12 12:45:00 test_server smbd[23918]:   tdb(/etc/samba/secrets.tdb): tdb_reopen: file dev/inode has changed!
Sep 12 12:45:00 test_server smbd[23918]: [2011/09/12 12:45:00, 0] smbd/server.c:open_sockets_smbd(586)
Sep 12 12:45:00 test_server smbd[23918]:   tdb_reopen_all failed.
there are lots of errors such as PANIC and SIGTERM regarding nmbd but I think the culprit was when I rsync the passd.tdb and secrets.tdb on the backup server.

Is there a better way to sync passwd of samba to my backup server?
 
Old 09-12-2011, 04:55 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi there,

The errors that you have pasted here are from the backup server. Right? How did you copy to backup server using rsync?

I would say better way is to use LDAP for samba users as that will rule out the sync issue.
 
  


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
need help = sync samba - user and password luzyS Linux - Newbie 4 06-06-2008 11:07 PM
Samba - Linux Password Sync with LDAP rbulman Linux - Networking 1 10-26-2006 05:56 AM
sync ldap and samba password with ldappasswd paul_mat Linux - Networking 2 11-21-2005 10:55 PM
NIS & Samba Password Sync? airrr Linux - Networking 0 08-14-2003 08:51 AM
samba Password sync saavik Linux - Networking 0 08-11-2003 06:30 AM


All times are GMT -5. The time now is 09:19 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