LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to sync samba password (https://www.linuxquestions.org/questions/linux-software-2/how-to-sync-samba-password-902516/)

packets 09-12-2011 12:38 AM

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?

T3RM1NVT0R 09-12-2011 04:55 PM

@ 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.


All times are GMT -5. The time now is 09:01 AM.