Why Ubuntu Terminal Does Not Show Password Characters When Typing sudo

Opening the Ubuntu Terminal for the first time, running an administrative command with sudo, seeing [sudo] password for user:, and typing on your keyboard only to watch the cursor sit completely still with zero dots, stars, or letters appearing makes almost everyone assume the terminal froze or their keyboard stopped responding. In reality, your keystrokes are registering normally — Ubuntu deliberately hides every trace of your password for security.

Why Ubuntu Shows Zero Characters (Not Even Asterisks)

Unlike web forms or graphical login windows that display a bullet or star for each keypress, Unix and Ubuntu terminals suppress 100% of visual echo when reading passwords. That prevents anyone glancing over your shoulder — or peeking at screen recordings — from counting even how many characters long your password is.

  • What to do right now: Simply type your normal Ubuntu login password carefully without expecting the cursor to budge, and press Enter.
  • Watch out for Caps Lock or Num Lock: Because nothing prints on screen, make sure your keyboard Caps Lock light is off and (on compact laptops) Num Lock is not turning letters into numbers before hitting Enter.

How to Make Ubuntu Terminal Show Asterisk Stars (***) for Passwords (Optional)

If seeing no feedback while typing makes mistyping long passwords frustrating on your personal laptop, you can enable classic visual * stars safely inside Ubuntu’s sudo configuration using the built-in editor check tool:

  1. Open Terminal (Ctrl + Alt + T) and launch the safe sudoers editor:
    sudo visudo
  2. Type your password invisibly one last time and press Enter.
  3. Use the Down Arrow key to find the line reading:
    Defaults env_reset
  4. Change that line carefully to append ,pwfeedback so it reads:
    Defaults env_reset,pwfeedback
  5. Save and exit safely (in default Ubuntu nano editor, press Ctrl + O, Enter, then Ctrl + X). Always use visudo rather than editing /etc/sudoers directly, because visudo checks syntax before saving so you never lock yourself out.

Next time you run a fresh sudo command in a new terminal window (run sudo -k to test immediately), every password keystroke echoes back a clean * asterisk so you always know your keyboard registered every press.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.