tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Chris Myers <cmyers () kiski ! net>
To: tru64-unix-managers
Subject: SUMMARY: entering 2500 passwords
Date: Fri, 07 May 1999 17:58:20 +0000	[thread overview]
Message-ID: <96079042215574.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1999-05-07 17:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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