Results 1 to 2 of 2
Hello! I have an old OpenBSD 4.1 server that I want to migrate to a new Ubuntu 12.04. My problem is, that I don't know how to migrate the master.passwd ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-02-2013 #1
- Join Date
- Apr 2013
Migrate master.passwd to shadow
I have an old OpenBSD 4.1 server that I want to migrate to a new Ubuntu 12.04.
My problem is, that I don't know how to migrate the master.passwd file with blowfish encrypted passwords ($2a$) to the shadow file on my Ubuntu 12.04, were the passwords are stored in sha-512 ($6$). Does anybody know how to handle this?
Last edited by albatrass; 04-02-2013 at 04:19 PM.
- 04-08-2013 #2
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Not possible. The passwords in either case are one-way encrypted with a salt randomizer. You should be able to extract the account name/user-id/group-id information and transfer that to /etc/passwd and /etc/shadow, but you will need to leave the passwords blank, with the "set password on next login" flag set. You will need to extract the group information from bsd as well, and verify that none of the user or group ids from bsd are incompatible with basic linux ones. You should be ok there, but no guarantees!Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!