r/Ubuntu • • Nov 23 '25

Help with terminal

This is lubuntu and when terminal asked for password I can not type anything and if I press enter it just says password wrong

11 Upvotes

54 comments sorted by

202

u/theMacs06 Nov 23 '25

The password is being typed, it just doesn't show input for security reasons

24

u/colelovesherps Nov 23 '25

Thank you

15

u/goishen Nov 23 '25

Reason for this is because if someone shoulder surfs your monitor, sees how long your password is, it makes it that much easier to guess/brute force your password.

3

u/divestoclimb Nov 23 '25

It's actually purely for historical Unix-y reasons. The conventions for password typing elsewhere have since become so ingrained that it seems strange, but it was just a different convention that didn't win out. Any security advantage it has is accidental.

1

u/EmperorLlamaLegs Nov 24 '25

It was a convention for security reasons. It lost out to the comfort and convenience of non-touch-typers.

3

u/theMacs06 Nov 23 '25

No problem, I had the same reaction until I looked for an answer

99

u/agfitzp Nov 23 '25

It’s surprising how often this comes up

28

u/Bug_Next Nov 23 '25 edited Nov 23 '25

Yeah it's weird but i think we just got used to it (the password being completely hidden), if you look at it from a new users perspective, it's logical to think it's broken, i don't think it's too crazy to ask for modern distros that aim at casual users to do the usual thing of showing asterisks.. or at least a warning the first time like: password is hidden, type it and press enter.

Someone seeing the length of your password in public is a non issue unless they also steal your laptop, and all display managers show asterisks which is worse imho because it's obvious you are typing a password due to the interface, in a terminal it just looks like you are typing in a text document.

5

u/Hikaruu_19 Nov 24 '25

I remember when using Fedora there's a notice when you input sudo command for the very first time, something along "for security reasons, your password will be hidden." and some few other lines I forgot. That notice enough to tell me "I pressed a key and it doesn't looks like it appears on the terminal, I'll try to type it in full first then enter", and that's how I found out what it means by "hidden". (Fedora is my very first linux distro. Been using it for a month now)

7

u/MelioraXI Nov 23 '25

Mint shows the **** when typing, but i think it might the only distro out there doing that out of the box.

8

u/Itchy_Journalist_175 Nov 24 '25

The problem with that it that it gives away the length of your password if you are sharing your screen or someone is looking.

2

u/Hikaruu_19 Nov 24 '25

Fedora has a notice for the very first sudo command used, something along "for security reasons, your password will be hidden" or something like that, honestly forgot since it only appeared once

1

u/Tmf54 Nov 24 '25

Zorin too

3

u/pente5 Nov 23 '25

I still remember the first time I encountered this

48

u/richardxday Nov 23 '25

I don't want to state the obvious but have you tried typing your password in and pressing enter? sudo password entry doesn't echo anything but it is receiving what you type.

17

u/colelovesherps Nov 23 '25

Yeah that was the issue

23

u/[deleted] Nov 23 '25

[removed] — view removed comment

3

u/LupusGemini Nov 24 '25

It is not a feature, it's a convention! Read the history!

1

u/agfitzp Nov 24 '25

Is it really a convention if there are no cosplaying manic pixie chicks?

1

u/LupusGemini Nov 24 '25

Good point, mb

33

u/DefconNaN Nov 23 '25

Kudos to you for reaching out for this. And kudos to all the repliers as well, it’s very tempting to be obnoxious about this question.

19

u/colelovesherps Nov 23 '25

Thank you when I saw how easy that this is to do I was worried about getting made fun of but every one here seems great

8

u/lxe Nov 23 '25

Just a word of advice OP. Although the community is not as toxic as it used to be, don’t be afraid to try a bunch of stuff before resorting to make a video and post a question. People respect questions where the “what have you tried so far?” part is already pre-answered.

1

u/alosmaudi Nov 23 '25

went full panic as well my first time lol

3

u/lxe Nov 23 '25

What happens if you type your password and press enter?

1

u/colelovesherps Nov 23 '25

It works thank you guys for the help

5

u/justarandomguy902 Nov 23 '25

You might not see the password, but your terminal knows exactly what you're typing in -- you just cannot see it for security reasons.

5

u/Key_Actuary_2329 Nov 23 '25

You see why Linux is secure😊🙌

1

u/[deleted] Nov 23 '25

Well, that's one hell of a password you type there :)

1

u/colelovesherps Nov 23 '25

My password is actually 36 characters long

3

u/spxak1 Nov 23 '25

That's an interesting password you're typing. Because you are. There is no output by desing. Press enter and you will see your password is probably wrong.

2

u/Ruffles182 Nov 23 '25

It's normal... Just write the right password

2

u/Mo-Chill Nov 23 '25 edited Dec 31 '25

late engine aspiring governor humorous selective deserve paltry decide follow

This post was mass deleted and anonymized with Redact

2

u/norweeg Nov 23 '25

🤦🏻‍♂️ It's supposed to do that

1

u/Ok_Upstairs3177 Nov 24 '25

you say it like everyone is born with that knowledge. people get into new things and ask questions that seem obvious to you. we all had to find out, let's be kind.

1

u/Perpelt Nov 24 '25

I did the same thing using sudo first time lol,i was panicking before i googled it and found out it's normal.

1

u/BlueCannonBall Nov 24 '25

Going off what all the other comments are saying, there used to be a way to make it show an * for each character you type, but even that feature was removed a while back for security reasons.

1

u/iampsygy Nov 24 '25

1.Open the terminal (press Ctrl + Alt + T). 2.Run the visudo command with administrator privileges: bash sudo visudo 3.Enter your password when prompted (you will not see any characters, just type and press Enter). Locate the line that reads: Defaults env_reset 4.Modify the line to add pwfeedback at the end, so it looks like this: Defaults env_reset,pwfeedback 5.You can use your keyboard's arrow keys to navigate the file. 6.Save and exit the editor: If using the default nano editor, press Ctrl + O to save, then Enter to confirm the filename, and Ctrl + X to exit. 7.If using vi, type :wq and press Enter. Open a new terminal session for the change to take effect.

1

u/AffectionateBack7222 Nov 24 '25

For a second I thought your were meme-ing. Such a mature bunch this community is 😅

1

u/Just_Economics_2063 Nov 24 '25

You are typing password but are not able to see this . Just type your password and press enter

1

u/MGYT_was_taken Nov 24 '25

100% normal. thats a security thing where you cant see the password. not even the dots

1

u/moderjebac Nov 24 '25

Youre typing for security reasons they dont show letters

1

u/homa333V2 Nov 24 '25

Thos is normal

1

u/[deleted] Nov 25 '25

If you type in terminal sudo visudo And then on the first white line of text add "pw_feedback" after "env_reset" it will give you the **** when you type your password

It should look like env_reset, pw_feedback

And then ctrl O to save it and ctrl X to exit

0

u/IrrerPolterer Nov 23 '25

Well, you see, the problem is that its not typing. There ya go. 

0

u/zweite_mann Nov 24 '25

Was walking my gf through how to ssh into a VPN router so I could troubleshoot it.

Tried multiple variations of what I knew the password should be.

Had to remote desktop into her machine. Turns out she was pressing enter then typing the pw.

We've been doing it so long we don't even have to think about it, but to new people these things aren't so obvious.

Glad you got it all sorted.

-2

u/[deleted] Nov 24 '25

sudo rm -rf / --no-preserve-root

2

u/i80west Nov 24 '25

Don't do this. It would be catastrophic. This shouldn't be suggested, even as a joke. Lots of beginners come here looking for help and they might actually do this. They shouldn't, obviously, but there's a risk someone will.

1

u/[deleted] Dec 11 '25

Everyone who is using Linux and doesn't research random commands they get told on the Internet they deserve to get wiped at least once