[Samba] Copy usernames and passwords to another machine
infractory at gmail.com
Fri Sep 25 10:40:26 UTC 2015
If I were you, I would try. Your second server is not yet up and running
with hundreds of clients connected on it so if it does not work, simply
revert your change and try something else. Or come back here to ask for
inspiration if don't know what to try next.
2015-09-25 12:00 GMT+02:00 Chris Rodgers <
christopher.rodgers at cardiov.ox.ac.uk>:
> Dear Matthias,
> Thanks for your reply.
> I'm actually fine with all the steps you last apart from how to have the
> "same Samba database on both servers".
> Can anyone explain whether it is OK simply to copy the
> /var/lib/samba/private/passdb.tdb from the first machine to the second one??
> My concern with this is that I want both systems to be operational
> afterwards, so the new machine has a different netbios name than the first
> one? If I copy the account database as-is, will I encounter problems due
> to SIDs not being compatible??
> Best wishes,
>> Your 2 Samba servers are file servers only? No AD nor NT4 domain?
>> If they are both file servers you would need:
>> - Samba installed on both server, same configuration as a start (could of
>> course be changed later)
>> - Same users defined in system side (copying your users lines from
>> /etc/passwd and /etc/shadow from working file server to the new one. Don't
>> copy services accounts - as ssh, postgresql...- nor root account, just
>> Samba users lines).
>> - Same Samba database on both servers. Here you have to find on your
>> working file server where is stored that database, I have no idea about
>> Once all that is copied from your working server to the new one both
>> work identically (except for shares where paths or files could be
>> That's just an idea, I didn't tested that.
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba