How to hide password on Linux?

Hi falks,

I have the following ksh code:
echo "Enter VS Admin password:"
oldstty=`stty -g`
stty -echo intr '$-'
read password
stty $oldstty
echo

This code ask from a user to enter his password. The OS suppose to hide the entering of the password.
This code works fine On Sun Solaris and HP but fails on Linux.
On Linux,i get the following error message:
Enter VS Admin password:
stty: invalid integer argument `$-'
Try `stty --help' for more information.

Does anyone know how it works on Linux?

Thanks in advance,
Nir

Try this and let us know ....

stty -echo
echo "Password::"
read PASSWD
stty echo

Hi bhargav,

Thanks a lot !
I've checked your suggestion and It works.
Eventually,i solved it by replacing stty -echo intr '$-' with stty -echo intr "^?
echo "Enter VS Admin password:"
oldstty=`stty -g`
if [[ ${HOST_TYPE} = 'Linux' ]] ; then
stty -echo intr "^?"
else
stty -echo intr '$-'
fi
read password
stty $oldstty
echo