SUMMARY - Passing parameters to change passwds

From: Chris Dale <oucd_at_alinga.newcastle.edu.au>
Date: Fri, 16 Jun 1995 16:20:13 +1000 (EST)

My original post:

>What I would like to do is enable password synchronisation between
>our application suite (Using the TODAY 4GL, anyone else using this ?)
>and the OSF level security (enhanced or standard).
>
>For this I would like to script up the password changing procedure
>and I would like to know what is the easiest way of passing parameters
>(the username and new password) to passwd and returning a success or
>failure status.
>
>Do I have to write a C prodedure for this or can it be done using
>Perl or somthing similar (passwd + perhaps)
>
From:
Simon Greaves censjg_at_caledonia.hw.ac.uk
Dave Sill de5_at_sws5.ctd.ornl.gov

Suggested getting hold of "expect"

Check out expect. It's a tool that allows you to write scripts to control
interactive programs, eg passwd, ftp, terminal sessions, whatever. It
comes
with a demo script called 'passmass' which allows automated password
change on
multiple hosts.

Expect may be ftp'd as pub/expect/alpha.tar.Z from ftp.cme.nist.gov.
Request email delivery by mailing to "library_at_cme.nist.gov"

You could do it with perl, but I think you'd need to have code on each
host to
munge the password file and a way to get the password to it. The expect
method
uses existing tools, telnet, passwd etc.

Simon Greaves
censjg_at_caledonia.hw.ac.uk
DDI: +44 (0)131 451 3265 Fax: +44 (0)131 451 3261


------

Please note you will need tcl compiled and installed to make expect work
but that was easy too !

Thanks also to:

Thomas Erskine <tom_at_clark.dgim.doc.ca> (613) 998-2836


Chris Dale
I.T.Coordinator
Dartbrook Coal Pty Ltd
Muswellbrook NSW Australia
oucd_at_alinga.newcastle.edu.au
Received on Fri Jun 16 1995 - 08:59:48 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT