November 27th, 2005, 10:35 PM
move users and passwords to new machine
I have a OpenBSD 3.2 machine and I have just installed OpenBSD 3.8 on another, I want to move all the users and passwords from the 3.2 machine to the 3.8. Is this at all possible and what is the process in doing so??
any help would be greatly appreciated.
Thanks in advance.
January 4th, 2006, 08:30 PM
From the man pages of pwd_mkdb
you'll need to copy the following:
You also want to make sure that the password scheme in login.conf between the two servers is the same. See man 5 login.conf and search for localcipher.
/etc/master.passwd current password file
/etc/passwd a 6th Edition-style password file
/etc/pwd.db insecure password database file
/etc/spwd.db secure password database file
/etc/group (This one is not in the man page)
Make sure to backup all your old files before changing all this.
You'll probably want to copy all the stuff under /home over to the new machine as well.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo