Thursday, May 2, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 4364  / 2 Years ago, wed, september 7, 2022, 8:35:40

Is it possible to make the password visible as asterisks (or any other character) on using sudo command?



Currently, it does not display anything, thus making it difficult to count the number of keystrokes pressed..


More From » command-line

 Answers
4

Open your terminal and edit /etc/sudoers.tmp file with:



sudo visudo


Modify the following line:



Defaults env_reset


to:



Defaults env_reset,pwfeedback


Save and exit.
Restart your terminal and now, when you run a command with sudo, you should get visual feedback when you type in your password.



Credit goes to: Make Password Asterisks Visible in Your Mac or Linux Terminal


[#28085] Wednesday, September 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
montwim

Total Points: 103
Total Questions: 112
Total Answers: 120

Location: Vietnam
Member since Mon, Mar 14, 2022
2 Years ago
montwim questions
;