Tuesday 10 September 2013

Make Password "Asterisks" keys Visible in Your 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.
I'm a fast typer, so when I mess up my password, I have to start over from scratch. With asterisks, it's a lot easier-and seeing as no one's looking over my shoulder in my home office, it doesn't matter how obscured my password is. To bring back those asterisks:
  1. Run the following command in a Terminal:
    sudo visudo
  2. Scroll down to the line that looks like this:
    Defaults env_reset
    and change it to this:
    Defaults env_reset,pwfeedback
  3. Press Ctrl+X to finish editing, Y to save changes, and Enter to exit.
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. Check out the link below for more ways to tweak how sudo works.

0 comments:

Post a Comment