Skip to content

Instantly share code, notes, and snippets.

@JQL
Created August 25, 2018 10:54
Show Gist options
  • Save JQL/2171a2b9360d2cefd227ad40dcff7d71 to your computer and use it in GitHub Desktop.
Save JQL/2171a2b9360d2cefd227ad40dcff7d71 to your computer and use it in GitHub Desktop.
Enabling password feedback in Terminal
Enabling password feedback in 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 is a quick tweak that will display asterisks (*) when you type in your password.
IMPORTANT: Only make the change shown below. DO NOT make any other changes to the file.
In Terminal, run the command:
sudo visudo
Find the line (use the up or down arrow keys on your keyboard):
Defaults env_reset
Change the line to read:
Defaults env_reset,pwfeedback
To finish editing press:
CTRL+X
Confirm your edits by pressing:
Y+Enter
NOTE:
if you are using a Mac or a different version of Linux you may need this command instead to finish editing:
:wq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment