Skip to content

Password isn't masked while waiting for the timout when an invalid password was entered #530

Description

@Buggfix42

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions