I have a problem.
I need to write a shell script to change the password. The user may want to change his own password by this script.
He will have to provide the required 3 parameters i.e. old password, new password and retype new password as arguments in command line.
like, ./pass.sh old new new
How do I do it. I am in a fix. :(
I am not allowed to use expect etc.
Please help me.