Don't show keyboard input on terminal

I am developing a script that will run with '/bin/ksh' shell.

The script is intended to receive a password by keyboard input, but for security reasons I would like to hide what the user is typing.

The keyboard input is being caught by 'read' command.

exmaple :

echo "Please type your new password :"
read NEWPASS

Can anybody help me ??

regards,
Mariano R.

People, after submitting this post a link to an old post gave me the answer :

The command 'stty -echo'.

Thanks and regards,
Mariano R.

1 Like