Changing passwords in Scripts

Jonathan I. Kamens jik at athena.mit.edu
Wed Feb 20 07:15:34 AEST 1991


In article <39 at cheops.UUCP>, logier at cheops.UUCP (Rob Logie) writes:
|> 		RE:  Changing passwords from within a shell/c program

  Get Dan Bernstein's "pty" package (available from the comp.sources.unix
archive in volume 23).  Then, you can run "pty passwd" instead of just
"passwd" and pipe the username and password into it.

  I suspect you can also do this with Don Libes' "expect" program (available
in /pub/expect.shar.Z on uunet.uu.net, and in other locations as well).

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710



More information about the Comp.unix.admin mailing list