|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: Reset unix passwords via Perl?by elTriberium (Pilgrim) |
| on Sep 21, 2010 at 20:24 UTC ( #861155=note: print w/ replies, xml ) | Need Help?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||