From: Chris Dale <oucd () alinga ! newcastle ! edu ! au>
To: tru64-unix-managers
Subject: SUMMARY - Passing parameters to change passwds
Date: Fri, 16 Jun 1995 06:20:13 +0000 [thread overview]
Message-ID: <96075320706540.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1995-06-16 6:20 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