Skip to content

Instantly share code, notes, and snippets.

@nicolaymh
Last active April 28, 2025 16:27
Show Gist options
  • Save nicolaymh/dfb0a8793baa6f4f5773f917fd2d8486 to your computer and use it in GitHub Desktop.
Save nicolaymh/dfb0a8793baa6f4f5773f917fd2d8486 to your computer and use it in GitHub Desktop.
Enable password feedback (*) in sudo on Linux
# Enable '*' feedback when typing the password in sudo (Linux - Professional Setup)
# Create a configuration file in /etc/sudoers.d/ to activate pwfeedback
echo "Defaults pwfeedback" | sudo tee /etc/sudoers.d/pwfeedback
# (Verify that the file was created correctly)
sudo cat /etc/sudoers.d/pwfeedback
# (If sudo does not ask for the password because of an active session, reset it)
sudo -k
# Then test with any sudo command, for example:
sudo ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment