Sudo konsole password wrong?

Konsole refuses to acknowledge my sudo password, I know it’s right cause I, you know LOGGED INTO the system? This has happened a few times and sometimes resolves itself in 5-10 mins but restarting the system generally fixes it instantly. Even pasting the password doesn’t work. What is this odd schizophrenia bug?

[v@v7 ~]$ sudo pacman -Syu
[sudo] password for v: 
Sorry, try again.
[sudo] password for v: 
sudo: timed out reading password
sudo: 1 incorrect password attempt
[v@v7 ~]$ sudo pacman -Suy
[sudo] password for v: 
:: Synchronizing package databases...
 endeavouros                               14.4 KiB  58.6 KiB/s 00:00 [---------------------------------------] 100%
 core                                     116.5 KiB  45.3 KiB/s 00:03 [---------------------------------------] 100%
 extra                                      7.5 MiB  2.12 MiB/s 00:04 [---------------------------------------] 100%
 multilib                                 130.2 KiB  51.8 KiB/s 00:03 [---------------------------------------] 100%
:: Starting full system upgrade...

When I try to reset the password - it says the password is the same as before so it does know the password but somehow thinks its the wrong one in sudo??? wtf?

1 Like

this usually happens when you have gotten it wrong enough times. usually because the prompt timed out. try sudo faillock --reset.

as @d-air1 said, it can be due to faillock.
Btw, you can change the fail attempt times from /etc/security/faillock.conf
Look for deny and unlock_time

It happens from the initial try as well, right after a boot. It’s not random in a sense that once it starts working that it can stop working in the future. This ONLY happens after booting into the system, not randomly during a session.

It happens regardless of me putting in the wrong password i.e after boot and opening the konsole for the first time. It is very hard to reproduce due to its random nature but it’s frequent enough to be annoying.

I may be wrong (and yes I know and change the faillock) but it seems that way to me too.
It isn’t a solution per say, but you can always use ‘su - root’ as replacement (works for me) when sudo is for unknown reasons being recalcitrant.

1 Like