A follow up on my earlier post... I was able to get the passwords migrated.
An the BSD system I did a vipw and saved it out to a temporary file (/tmp/passwd-tmp). I copied that file to the linux system and did the following:
This assumes no expirations on passwords.
Then edit out all the system accounts from both files so you just have the accounts you want moved.
finally on the linux system do a vipw. You will first edit the public password file so append the passwd.new file to the end (go to the end of the file and do ":r passwd.new". Do a :wq, and the say yes to editing the shadow file and append the shadow.new file to the end.
I've only tested a couple accounts, but they seem to work file. You might have to change some pathings for home dirs and shells, but that should be easy.
As usually, the only guaranty I provide is, "It worked for me."
An the BSD system I did a vipw and saved it out to a temporary file (/tmp/passwd-tmp). I copied that file to the linux system and did the following:
cat passwd.tmp | awk -F : '{print $1":x:"$3":"$4":"$8":"$9":"$10}' > passwd.new
cat passwd.tmp | awk -F : '{print $1":"$2":"$3":0:99999:7:::"}' > shadow.new
This assumes no expirations on passwords.
Then edit out all the system accounts from both files so you just have the accounts you want moved.
finally on the linux system do a vipw. You will first edit the public password file so append the passwd.new file to the end (go to the end of the file and do ":r passwd.new". Do a :wq, and the say yes to editing the shadow file and append the shadow.new file to the end.
I've only tested a couple accounts, but they seem to work file. You might have to change some pathings for home dirs and shells, but that should be easy.
As usually, the only guaranty I provide is, "It worked for me."
