Last active
April 28, 2025 16:27
-
-
Save nicolaymh/dfb0a8793baa6f4f5773f917fd2d8486 to your computer and use it in GitHub Desktop.
Enable password feedback (*) in sudo on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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