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

hike1272-sunhelp at yahoo.com hike1272-sunhelp at yahoo.com
Sun Dec 21 17:25:12 CST 2003


gee, this sounds like a homework assignment!

don't you think you should do your own homework?


man sort
man awk
man sed


--- alani at mit.edu wrote:
> 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
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp


More information about the SunHELP mailing list