Make Passwords Asterisks visible on your Linux Terminal

display opassword on linux terminal

When you run a command with sudo in Linux, the terminal prompts you to type in your password—and doesn’t give you any visual feedback. Here’s a quick tweak that’ll bring back those familiar asterisks (*) when you type in your password.

Run the following command in terminal.

sudo visudo

Scroll down to the line that looks like this
Defaults env_reset

and change it to
Defaults env_reset,pwfeedback

Press Ctrl+X to finish editing, Y to save changes, and Enter to exit if you’re on Ubuntu. Other Linux distros may have different commands depending on the default editor.

Now, when you run a command with sudo, you should get visual feedback when you type in your password. This should work in all versions of Ubuntu after version 10.04, as well as many other versions of Linux.

Advertisements

10 thoughts on “Make Passwords Asterisks visible on your Linux Terminal

    • Not me, but many people before me. It’s about the security and not about Microsoft. Not really sure why Microsoft is mentioned when this blog post is talking about sudo, even I do know it’s login shows *.

  1. If Microsoft shows *, don’t they care about security or may be Microsoft users don’t know to type so they need * for visual feedback, This is what you are saying.

    • I have no idea what you are actually saying.

      If someone does care about security, you wouldn’t want to have the visual feedback because it’s a way to show how many characters that your password is. The less to be known the better.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s