/etc/shadow load

Anyone have/know of a tool that can load the encripted password from a system's /etc/passwd to another system? We are moving to a different platform - some of the id's have been around a while and we don't want to reset the passwords for all of them. I am only talking about a subset of the id's that are defined - I can't use the whole file.

Thanks...

[371 byte] By [mvmurphy] at [2007-11-26 8:48:49]
# 1
Is the system using NIS+? Sounds like a job for nisaddent...
Red_Oregon at 2007-7-6 22:37:41 > top of Java-index,General,Talk to the Sysop...
# 2

You could simply grep+awk out the encrypted string from /etc/shadow and search and replace 2nd field on the target box (corresponding to the user id).

so you need to start off with one input file that has the reqd. password and user id in this format -- userid:encrypted string.

Then you need a script that will grep for that user id in /etc/shadow and replace the existing encrypted string from /etc/shadow with the string in your input file.

It's a little cumbersome to set up but can make life easier if you're working on hunderds of boxes.

implicate_order at 2007-7-6 22:37:41 > top of Java-index,General,Talk to the Sysop...