From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079042215574.tru64-unix-managers.marc@archive.invalid> From: Chris Myers Date: Fri, 07 May 1999 17:58:20 +0000 To: tru64-unix-managers Subject: SUMMARY: entering 2500 passwords X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079042215574 I need to know how to enter 2500 passwords programmatically. thanks to Matt Moore for this awesome perl script. it was exactly what i was looking for. #!/usr/bin/perl # Program to change passwords while (<>) { chop; ($login, $pword) = split; $salt=substr($pword,0,2); $password=crypt($pword,$salt); `/tcb/bin/edauth -gdp $login | sed 's|:u_pwd=[^:]*:|:u_pwd='$password':|' | sed 's/:u_oldcrypt#.:/:u_oldcrypt#2:/' | /tcb/bin/edauth -sdp` } several other suggested expect scripts (i was actually working on one) George Guethlein (gguethlein@giantofmaryland.com ) sent me some very nice expect scripts. several other suggested c. thanks to all. Chris