Test Test How to show asterisks when typing sudo password | Çınar Mert Çeçen - Blog
Skip to content
Go back

How to show asterisks when typing sudo password

By default, sudo doesn’t show any feedback when you type your password. You can enable pwfeedback to show asterisks as you type your password, like so:

cinar@fedora ~$ sudo -v
[sudo] password for cinar: *************

one should NEVER open the /etc/sudoers file with a normal text editor. always use sudo visudo.

  1. open the /etc/sudoers file by running sudo visudo.

  2. add this line to the end of the file:

Defaults pwfeedback
  1. save and exit.

you might need to kill your existing sudo session with sudo -k.


while you are here, you might also want to insult users on wrong password or change the sudo timeout so you don’t have to type your password so often. in either case, click the relevant link.


Share this post on:

Previous Post
How to change the sudo password timeout
Next Post
How to make lecture show up forever in sudo