|As I said in my original post, use the unix passwd command to change a users password. For user suresh, a user with root privileges can do this:|
passwd then prompts you to enter a password.
You can use passwd to chance your password from the command line by executing:
and it prompts you to enter a password.
Also, as I said, since passwd is an interactive command you can't call it from a normal sh/ksh script. You have to use expect.
Did you look at the link I posted?