Archives For Enable Password Feedback

Display Asterisks when typing password

When you run a command started with sudo in Ubuntu terminal, it asks you to insert the password for your user with no visual feedback as you type.

For beginners who feel uncomfortable with this terminal feature, below will teach you how to tweak your Ubuntu so that Gnome terminal (and TTY console) displays asterisks when you type in your password.

Terminal with password feedback

Terminal with password feedback by displaying asterisks

1. Press Ctrl+Alt+T on keyboard to open a terminal window. Or open terminal from Unity Dash.

Open Terminal to run commands

2. Paste the below command in terminal and hit enter. Type in your password when prompt.

sudo visudo

It will open the configuration file “/etc/sudoers” in terminal with nano editor.

Edit sudoers in Ubuntu

3. Make a new line:

Defaults        pwfeedback

under the line:

Defaults        env_reset

So it looks like this: (NOTE that the space between Defaults and pwfeedback should be a tab)

Enable password feedback in terminal

4. Now save the changes. Press Ctrl+X, type y to answer yes, press Enter to accept default file name.

Close this terminal window and done.