Password Shell Script Solaris 9
I am working on a script to set/change passwords for users. The script prompts you for the username and then the password. They are stored in variables: $uname and $pword. The script then runs passwd $uname. The output is this:
passwd chris
new password:
What I need to know at this point is how to get the value of $pword to be the input for the new password.
Thanks,
Chris
|