Cannot type password into terminal

When I type my password into terminal on my MacBook Air 2023.the ext does not appear on the screen. After pressing enter I get "sorry try again". What am I doing wrong?


MacBook Air (2018 – 2020)

Posted on Oct 18, 2023 6:28 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 18, 2023 6:35 AM

Hi lolly177,


This is normal behaviour. When the key icon appears in Terminal with a password request, it will seem as if you're typing nothing. Just enter your password as normal regardless and hit Enter (Return) to proceed.


Just curious, are you trying to run a command that contains "sudo"? If yes, can you please post the command here? "sudo" grants superuser privileges and can be dangerous if you don't know what you're asking the system to do.

3 replies
Question marked as Top-ranking reply

Oct 18, 2023 6:35 AM in response to lolly177

Hi lolly177,


This is normal behaviour. When the key icon appears in Terminal with a password request, it will seem as if you're typing nothing. Just enter your password as normal regardless and hit Enter (Return) to proceed.


Just curious, are you trying to run a command that contains "sudo"? If yes, can you please post the command here? "sudo" grants superuser privileges and can be dangerous if you don't know what you're asking the system to do.

Oct 18, 2023 7:17 AM in response to lolly177

Thanks for that info! Seems legitimate - I found those instructions here: https://www.java.com/en/download/help/mac_uninstall_java.html


Be careful when using those commands to uninstall Java; copy and paste the first line (command) into Terminal, hit Enter (Return), provide your password. Then copy and paste the second command, etc.


Here's what the commands are asking your system to do:


  • sudo: Run whatever is after this with root (superuser) privileges. Basically the Mac equivalent of "Run as Administrator" from Windows.
  • rm -fr: Forcibly delete the specified file or folder (and its contents) and don't ask for confirmation. Very dangerous!

Oct 18, 2023 6:52 AM in response to Encryptor5000

Hello, the command is:

sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane

sudo rm -fr ~/Library/Application\ Support/Oracle/Java


I got this command from the Java website. I installed Java on my MacBook Air but I am not able to locate the program to open it. In terminal it tells me the version that is installed, but again I have no way to open it.

I want uninstall the program and then try to install it again.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cannot type password into terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.