> With the following script, you can hide the password while typing but
> for printing stars inplace of the correct string, you have add some more
> try this script .....
> Dhruv Maheshwari
> echo "Enter Password : \c"
> stty -echo
> read x
> stty echo
> echo "\n $x"
Personally, I think that NOT showing stars is much better. If someone is
watching that user log in, they will know the length of the password for that
user. Cracking that password is now *WAY* easier. If no stars are shown, it is
not as easy for people to detect password length.
The drawback of no stars is: if the users are true no brain users, they need
those stars to believe the password is being typed. Many might stumble if no
output is seen on the screen.
Jst M $0.02.