* SUMMARY - Passing parameters to change passwds
@ 1995-06-16 6:20 Chris Dale
0 siblings, 0 replies; only message in thread
From: Chris Dale @ 1995-06-16 6:20 UTC (permalink / raw)
To: tru64-unix-managers
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@caledonia.hw.ac.uk
Dave Sill de5@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@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@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@clark.dgim.doc.ca> (613) 998-2836
Chris Dale
I.T.Coordinator
Dartbrook Coal Pty Ltd
Muswellbrook NSW Australia
oucd@alinga.newcastle.edu.au
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-06-16 6:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-16 6:20 SUMMARY - Passing parameters to change passwds Chris Dale
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox