1. No Profile Picture
    Slightly Disturbed
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Rep Power

    Exclamation move users and passwords to new machine

    Hi All,

    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.

  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    From the man pages of pwd_mkdb
    you'll need to copy the following:
         /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)
    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.

    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

IMN logo majestic logo threadwatch logo seochat tools logo