Without TCL/Expect script, can someone provide a Shell/Perl script or way to automate changing of a couple
of Solaris account passwords every 60 days? This is for nagios (& a couple other) Solaris accounts which we
have to auto-expire but we can't afford to miss, else the expired password would cause service disruption.
Passwd, usermod or RHEL's chage can't read input from a file, thus I've not been able to find a Shell/Perl
script to do this. However, we don't want to install TCL/Expect in our Solaris 10.
if we use sed or awk to change the 'hashed' password field of /etc/shadow, would Solaris (or even RHEL)
deem the password has been changed or UNIX will still deem it's not changed yet as we're editing the
shadow/passwd files directly instead of using commands like passwd/usermod/chage to change