Einstein47
Programmer
I have a script that I wrote so that a user could change his/her CVS password. Currently I just do the following when they enter the password:
This works except that the users complain that they like to see astericks (****) when they type to know how many characters they have typed.
Is there an easy way to do this (without creating my own read program)?
Thanks, Einstein47
("If computers ever get too powerful, we can organize them into a committee - that will do them in." - Unknown)
Code:
echo "Enter your current password: \c"
stty -echo
read oldpass
stty echo
Is there an easy way to do this (without creating my own read program)?
Thanks, Einstein47
("If computers ever get too powerful, we can organize them into a committee - that will do them in." - Unknown)