Skip to content

Wrong Password

This has happened to me twice in the past months and its not something common but it is really weird. Randomly when I am running sudo it says my password is wrong and I sign out and can't sign back in since it is still saying my password is wrong. I have to turn off and on my computer for my password to work again. And no I didn't put it in wrong, I tried with care like 20 times.

13 points29 comments
Open on Reddit
About this post
Posted
Archived
Score
13 · 81% up
Kind
Text
ID
15exmt2

Author

21
posts
34
comments
14
media
View profile

32 comments

The next time this happens again, log in as root and check the output of 'faillock'.

25 points

And no I didn't put it in wrong

Did you fail to input a correct password before though?
By default if you input a wrong password 3 times, you get a timeout during which you will not be able to log in.

If not manually, maybe you have some stupid program running that pipes a wrong password to sudo for some reason?

11 points

I didn't do it wrong for 3 times. And also what is the piping thing you are talking about and how can I check for it?

5 points

Nah. It's happened toe a few times. Maybe four in all over several years. The first time I thought I was losing it lol

1 points

Yes. This happens to me occasionally when I'm using mis-formed Sanoid commands to move zfs datasets around, or trying to pipe passwords into ssh.

2 points

tried with care like 20 times

If you type it wrong thrice you'll keep getting wrong password even if you type it correctly afterwards

4 points

The same thing happens to me too from time to time. My 100% correct password is not accepted and I have to reboot to fix it.

3 points

Same for me, this post actually relief me from thinking I was the only having this issue

3 points

To unlock yourself, on root user run faillock --user username --reset or reboot. To edit your faillock security settings, edit the file /etc/security/faillock.conf

I personally made it less forgiving, because pressing ctrl+c to cancel a command counts as a fail, and being away when being asked for a password probably also counts. There's many things that probably count as a fail. I don't like it very much, I figured that if it's this likely to get locked I should make it more forgiving.

3 points

I think it is the ctrl c because I always sit upright and type slowly on the 2nd login attempt because I also did 2 ctrl c before that.

2 points

I have the same problem from time to time. Solve it by simply sitting quietly for 10 minutes )

3 points

Is it possible the wrong keyboard layout was in use (not by your fault, but a bug)?

2 points

I had a similar if not the same issue I think because of the shell I had set, no idea why. I set it back to bash and it worked fine. Maybe also check if the keyboard layout is correct.

2 points

I have the same problem in EndeavourOS, it is a random situation.

I know I type the correct PW, it is just 3 letters, when it fails I just type it in the text editor to check.

If I do a Logout, the same situation occurs in lightdm, and where, it fails again and then set the warnings of 3 wrong attempts.

I need to reboot.

This appended me only 3 times since the new year.

1 points

it is just 3 letters

thank you for the instant access to your machine ;)

1 points

My PC doesn't go outside and I don't have secrets to my wife hahahah. xD

2 points

It's been happening to me for the last couple of days, not sure what's caused it. Nothing new installed except for regular updates

Keyboard layout is correct (typing password into console produces expected text), password being typed correctly

As another user suggested a quick su and faillock --reset does appear to fix it

Hoping it fixes itself, annoying

1 points

Maybe it's because there is a security of someone trying to enter the password again and again until he gets it right. When you enter a wrong password 3 or 5 times continuously a timeout of like 10 minutes takes place where even if you enter it correctly nothing will happen. On Android this happens and people in the comments are saying arch has something similar to it.

1 points

you can still use su in there you can unlock yourself with something faillock unlock username

1 points

Faillock --reset

Happened every time I tried to sudo. Found there was a script calling a sudo command, and idk why, but it was setting faillock.

1 points

Faillock --reset

Happened every time I tried to sudo. Found there was a script calling a sudo command, and idk why, but it was setting faillock.

1 points

I've had that and had to type my password something like 30 times total, 15 times to get pissed off, 15 times again and then I rebooted and it worked lol

1 points

i had to just reinstall

-6 points

this is on two seperate installs. But im glad I didn't have to reinstall the whole system

1 points

Fortunately Manjaro installer is pretty straightforward.

-6 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.