Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Ubuntu 6.06 server that needs to be replaced by an Ubuntu 9.04 server clean setup, I already copied the entire samba file server directory to the new 9.04 server using rsync. I need to know how to migrate the existing user accounts (machine accounts) to the new server so as when I physically transfer the connections everything will be ok and I don't have to manually enter "smbpasswd -a " on the new server.

Appreciate your help.

passdb backend = tdbsam

network workstations accessing the share are either vista or xp.

share|improve this question

You'll need to copy /etc/passwd, /etc/shadow, /etc/group, /etc/samba/smbusers, and /etc/samba/smbpasswd. This site shows you how to do the first 3, but I've done the last two and it worked fine.

share|improve this answer
Since passdb backend = tdbsam, your answer is incomplete. – smammy May 7 '15 at 13:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.