Show Asterisks(*): Sudo Password in Linux

saurav omar
2 min readApr 17, 2019

--

We have seen most of the time that while typing the password for sudo command nothing is shown, sometimes its confusing whether we have typed anything or not, if we typed how many characters we have typed.

Example:

so in the above snapshot, we can see no typed password information we can see.

How can we asterisks while typing the password for sudo command:

  • Open the file
sudo vim /etc/sudoersor sudo visudo
  • Add the line
Defaults pwfeedback
  • After adding above line do reset.
 reset
  • After reset you will start seeing password with asterisks while using sudo command.

That’s it.

Thanks for the reading this article.

Feedbacks are always welcome.

Happy Learning.

--

--

saurav omar
saurav omar

Written by saurav omar

Geek and Always ready to give more than 100%

No responses yet