[Samba] Copy usernames and passwords to another machine
christopher.rodgers at cardiov.ox.ac.uk
Fri Sep 25 10:00:17 UTC 2015
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??
> 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 should
> work identically (except for shares where paths or files could be missing).
> That's just an idea, I didn't tested that.
More information about the samba