Showing password asterisks as feedback in sudo
A friend showed me a very useful feature he had enabled in sudo, which let him see a masked (with asterisks) view of the typed characters in the password prompt. Here's how to enable it!
Open your terminal and edit your sudoers file with visudo
:
sudo visudo
Side note!
It might be useful to set the
EDITOR
env var to something else to avoid the pain that isvim
.For example:
EDITOR=micro sudo visudo
Modify the following line
Defaults env_reset
with
Defaults env_reset,pwfeedback