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.
|
---|
In Section
Seekers of Perl Wisdom