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.

link|improve this question
feedback

2 Answers

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.

link|improve this answer
feedback

This didn't work though, I tried your solution but in the end I had to manually add the user accounts into the server. Maybe because the old samba is a 3.0.2 and the new one is a 3.3.2.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown