Search

Making sudo display * while entering password

While using the sudo command by default there is no response on the screen what we type the password, it remains blank and only after we hit enter we see any response.
This can get a little confusing for the beginners who are used to seeing "*" or other characters when password is entered.
sudo can also be made to behave the same way by adding the flag "pwfeedback" to /etc/sudoers .

Open the file "/etc/sudoers" (You will need root privilege)



After the intial lines of comments add the following



Save the file and quit.

Note: This introduces a securtiy threat as an onlooker can see the number of characters present in the password.

The next time sudo command is used, we should see "*" instead of just blank space while entering the password.

No comments:

Post a Comment