Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Reset unix passwords via Perl?

by elTriberium (Friar)
on Sep 21, 2010 at 20:24 UTC ( #861155=note: print w/replies, xml ) Need Help??


in reply to Reset unix passwords via Perl?

You can use Expect to ssh to the remote hosts. This also lets you easily automate the (probably interactive) password-reset process.

In short:

- ssh to the host using Expect

- run passwd

- When asked for the password, send it through Expect

- Done.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://861155]
help
Chatterbox?
LanX has the same problem with English accents ...
[LanX]: Will Cartesian Products still be tarif free after Brexit?
LanX ... though he can't lift more than one grown up at a time
[Corion]: :-D

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-01-18 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (161 votes). Check out past polls.