Sudo doesn’t let me type the password

I recently installed fedora, I wanted to use the terminal to do some tasks, every time I use some command that starts with “sudo”, it asks me for the password, but it doesn’t let me type it, any key I press is not shown on the screen, what can I do?

[sudo] password for develocod:

It is normal for the password not to show. It is meant to keep a bystander from seeing your password. Just keep typing and hit enter and it should work. :slightly_smiling_face:


You saved my life brother, I thought I had a bug, I was going to uninstall it, thanks.

Just out of curiosity –
What system have you been using that displays the password when you enter it?

In all systems I have used for decades either nothing shows (most computers) or something like dots or stars show (mostly web sites) to hide the actual password.

If you want to see stars while typing a password,
you can add some rules to the /etc/sudoers.d/ directory:

sudo tee /etc/sudoers.d/pw_stars << "EOF"
Defaults env_reset,pwfeedback

As @glb mentioned a bystander can’t see the password but he can count the stars :wink:

To remove the password stars again you just have to type:

sudo rm /etc/sudoers.d/pw_stars