You can enable the password feedback feature in /etc/sudoers file, but first create a backup of the file, then open it for editing using the visudo command.

$ sudo cp /etc/sudoers /etc/sudoers.bak
$ sudo visudo 


Search for the following line.

Defaults env_reset


And append pwfeedback to it, so that it looks like this.

Defaults env_reset,pwfeedback


Now press Esc key and type :wq to save and close the file. But if you are using nano editor, save the file by hitting “Ctrl+x” and then “y” followed by “ENTER” to close it.

Then run the command below to reset your terminal for the above changes to start working.

$ reset


That’s it

這篇文章有幫助嗎? 0 用戶發現這個有用 (0 投票)