tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: entering 2500 passwords
@ 1999-05-07 17:58 Chris Myers
  0 siblings, 0 replies; only message in thread
From: Chris Myers @ 1999-05-07 17:58 UTC (permalink / raw)
  To: tru64-unix-managers

I need to know how to enter 2500 passwords programmatically.

thanks to Matt Moore <moorem@storm.bucks.edu> 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-05-07 17:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-07 17:58 SUMMARY: entering 2500 passwords Chris Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox