[SunHELP] script to change passwd field of /etc/shadow file

alani at mit.edu alani at mit.edu
Sun Dec 21 17:04:56 CST 2003


Hi:
I have a file listed about 1200 UIDs out of around 14000 UIDs in the /etc/passwd
file. I'd much appreciated if anyone can come up a script to do the followings:
1. Find out matching instances and grep those user names from /etc/passwd file
against my UID list file;
2. Then insert a random string or at least one specified string into the passwd
field of the /etc/shadow file for those user names returned from step 1.

Best Regards & Wishes for the Holiday

Alan


More information about the SunHELP mailing list