Is it possible to make the password visible as asterisks (or any other character) on using
Currently, it does not display anything, thus making it difficult to count the number of keystrokes pressed..
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Open your terminal and edit
/etc/sudoers.tmp file with:
Modify the following line:
Save and exit.
Restart your terminal and now, when you run a command with
sudo, you should get visual feedback when you type in your password.
Credit goes to: Make Password Asterisks Visible in Your Mac or Linux Terminal
While there is no configuration nor parameter option to do that directly with in the terminal sudo, you could theoretically accomplish something similar to what you need.
First you will need to set the environment variable
Then you would run your command with
-A option, for example
sudo -A ls
This will give you a graphical prompt.
In theory you could write your own programme rather than using ssh-askpath, your code needs to display the prompt as it is given in the argv, read user's password (displaying stars, circles, or anything else you fancy), and then display it to stdout. Do not worry about displaying it, since sudo will not allow this password to ever be seen, it will intercept such display.