Amit,
First, THANK YOU for posting the script.
I get the following error when attempting to run this on a SUN box.
Can't open a pseudo-terminal. No such file or directory at ttypasswd.pl line 26.
I'm hoping to change the root password across many servers via a script. This script appears to change the password for the initiating user.
On my target servers, I'll need to su - to the root account since we can't login directly as root.
I have a file that contains that the hostnames for all my target servers and I would like the script to parse this file.
Thank you in advance for any assistance you can provide.
Chris