How To Enable Asterisks When Typing Your Password In A Terminal On Ubuntu

Опубликовано: 30 Май 2026
на канале: Martijn van Poorten
480
0

read article here: http://wp.me/p25G1O-4n3

Normally when you type your password all you see is an empty line so here is a guide to enable asterisks (*) when typing your password in the terminal window.


To enable the asterisks need to add a line to your /etc/sudoers file. To scroll up and down the open file you can use the up/down and left/right arrows on your keyboard. To open the file open a terminal window (press Ctrl+Alt+T) and copy+paste the command below:

sudo visudo
When the file is open add the following line under the line that says Defaults env_reset:

Defaults pwfeedback
When the line is added save the changes and press Ctrl+X, type y to answer yes, press Enter to accept default file name and close the terminal window. From now on you will see an * when typing your password.