Description
Consider you mistyped your password in sudo, then there's a timeout until you can retry entering the password.
Within the timeout timespan, input (the password) is shown unmasked in the terminal.
I (and probably many others) often type my password directly after I mistyped it because it's faster than waiting for the timeout to be finished and then entering the password.
But as the title says, the password is shown unmasked on the terminal before the timeout finishes.
The most straightforward solution would be to NOT set the ECHO flag of the terminal while sudo waits for the timeout.
That would cause no input to be shown at all during the timeout which is better than having my password shown unmasked.
Context information
Sudo version 1.9.15p5
Linux Mint 22.1
gnome-terminal
Description
Consider you mistyped your password in sudo, then there's a timeout until you can retry entering the password.
Within the timeout timespan, input (the password) is shown unmasked in the terminal.
I (and probably many others) often type my password directly after I mistyped it because it's faster than waiting for the timeout to be finished and then entering the password.
But as the title says, the password is shown unmasked on the terminal before the timeout finishes.
The most straightforward solution would be to NOT set the ECHO flag of the terminal while sudo waits for the timeout.
That would cause no input to be shown at all during the timeout which is better than having my password shown unmasked.
Context information
Sudo version 1.9.15p5
Linux Mint 22.1
gnome-terminal