Skip to main content
Topic: Sometimes but too annoying cannot confirm password in terminal, Why?  (Read 910 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Sometimes but too annoying cannot confirm password in terminal, Why?

Hai All,
I use Artix Linux in my laptop, but why sometimes but lately more frequent to happen I can't to confirm my password, the system always said my password was wrong, even though I have logged in and successfully reached my linux artix desktop, too annoying.
Need restart to working properly again, but sometimes this behaviour from artix linux was happening again. I didn't use automaticallty login I use password to login to my artix linux desktop and I didn't find behaviour like this in other linux distro even arch linux, only in artix linux. I'm using runit artix linux lxqt.
How I solved this problem?


Thanks You in Advanced
Best regards,
Afiadi

Re: Sometimes but too annoying cannot confirm password in terminal, Why?

Reply #1
if you are using sudo, when user enter 3 times wrong password , then you have to wait for 10 min for using sudo again.
you can change this behaviour of sudo.
In file /etc/security/faillock.conf set deny = 0 (line number should be 32)
Create problems which don't have solution

Re: Sometimes but too annoying cannot confirm password in terminal, Why?

Reply #2
Try typing your password a few times when this happens in case it is a faulty keyboard causing this. Also switch to another tty using CTRL ALT F* and type it there, because that will use the terminal keymap which the sudo password uses, sudo doesn't use X to avoid keylogging. If the terminal keymap is wrong or you have a faulty stuck unbound key it might show up in the tty.

Re: Sometimes but too annoying cannot confirm password in terminal, Why?

Reply #3
i have the same problem. i'm pretty  sure it's not a problem by physical keyboard. the solution is the same for me, i need to restart. i have a lot of key mapping so it's probably the cause. I'll try switching tty next time it happens.

Re: Sometimes but too annoying cannot confirm password in terminal, Why?

Reply #4
In file /etc/security/faillock.conf set deny = 0 (line number should be 32)
Better than softening the security would be simply to unlock the faillock with
Code: [Select]
faillock --reset

Do you autostart anything requiring sudo?

Re: Sometimes but too annoying cannot confirm password in terminal, Why?

Reply #5
Better than softening the security would be simply to unlock the faillock with
Code: [Select]
faillock --reset

Do you autostart anything requiring sudo?

This is happening again, this is random situation, not always but sometimes and lately is more frequent to happen, too annoying, In other distro even in arch linux base this is won't happen. I confirm my keyboard is working normally, in other distro I don't have to sublte my security because this is natural to linux to ask password when we are run need super user privileges or in this case command with sudo.

I'm waiting for this to happen again and that's right this is happening again today. Look at my SS in dekstop artix linux lxqt below:


How I can solved this problem, naturally without subtle the aritx linux security?
No I don't have autostart program.

Thanks You in Advance

Re: Sometimes but too annoying cannot confirm password in terminal, Why?

Reply #6
https://forum.artixlinux.org/index.php/topic,1923.0.html

There is too little information about your system, and too vague, while there is too much of the definitive and presuming "this works in Arch and not in Artix". How did you install Artix? Did you migrate from Arch? Do you share configuration files between several concurrent installations of GNU/Linux? What have you changed exactly in configuration? How did you configure PAM, GnuPG and SSH? And so on.

Artix works perfectly for me, and I never had this issue, so there's that. Check if you are entering your password correctly and if your keyboard is not failing.

 

Re: Sometimes but too annoying cannot confirm password in terminal, Why?

Reply #7
https://ostechnix.com/how-to-switch-between-ttys-without-using-function-keys-in-linux/
There are 2 keymaps - one for your graphical session and another terminal one. sudo uses the terminal (tty) one for the password, this is not the same as the desktop terminal window you show onscreen which uses the graphical keymap. Also in my case I noticed that the keymap in use when it asks you for a login on the tty is different to the keymap in use after you have logged in on the tty. It probably relates to the keymap not getting set properly sometimes if it isn't a faulty key.
An easy workaround (if practical, may not be in some cases) might be to pick a password using only letters / keys that would be the same for a US English keyboard layout.
To illustrate this effect, type your password in the desktop terminal and part way through press an unbound key, say 'F2' in my case, it does nothing, the password appears as you would expect. Type it like that at a sudo prompt and it says the password is wrong. Log in to a tty and F2 gives the letter 'B' for me, revealing what the problem was for sudo! The exact result will depend on what keymaps and apps you are using.