You are not logged in.

#1 2023-11-28 14:34:35

lucenabo
Member
Registered: 2023-11-17
Posts: 18

sudo password don't work

I have had this problem more times. Sometimes, randomly, the sudo password doesn't work, but i don't know why. What I do to solve for a moment it's restart the PC. I don't know why this happens. If anyone could help me I would appreciate it. Thanks

Last edited by lucenabo (2023-11-28 14:34:52)

Offline

#2 2023-11-28 14:39:54

astralc
Member
Registered: 2022-09-17
Posts: 126

Re: sudo password don't work

maybe faillock - several failed attempts cause using password to be blocked (I think failing also include sudo timeout)

https://wiki.archlinux.org/title/Securi … n_attempts

Offline

#3 2023-11-28 15:03:27

Khere
Member
From: Italy
Registered: 2020-03-04
Posts: 170

Re: sudo password don't work

Log in as root and try to reinstall pambase and see if the issue persists.

pacman -S pambase

Fan of Giorgio Moroder & Mohammad Ammax enemy

Offline

#4 2023-11-28 15:04:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: sudo password don't work

Khere wrote:

Log in as root and try to reinstall pambase and see if the issue persists.

pacman -S pambase

What are you trying to accomplish with this?

Online

#5 2023-11-28 15:06:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: sudo password don't work

Keyboard layout?  Shift lock?  What happens if you change consoles and log into a terminal?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2023-11-28 15:54:43

lucenabo
Member
Registered: 2023-11-17
Posts: 18

Re: sudo password don't work

ewaller wrote:

Keyboard layout?  Shift lock?

The layout is spanish and when I failed the password twice I always type very slow and looking if a type the wrong key.

ewaller wrote:

What happens if you change consoles and log into a terminal?

I switch to tty and there I can log in my user but not in root

Offline

#7 2023-11-28 15:57:18

lucenabo
Member
Registered: 2023-11-17
Posts: 18

Re: sudo password don't work

astralc wrote:

maybe faillock - several failed attempts cause using password to be blocked (I think failing also include sudo timeout)

https://wiki.archlinux.org/title/Securi … n_attempts

I have restarted this, IIhope it doesn't give me more errors

Offline

#8 2023-11-28 16:00:30

lucenabo
Member
Registered: 2023-11-17
Posts: 18

Re: sudo password don't work

Khere wrote:

Log in as root and try to reinstall pambase and see if the issue persists.

pacman -S pambase

This happens to me randomly, I have reinstalled in case this can solve it

Offline

#9 2023-11-28 16:09:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: sudo password don't work

lucenabo wrote:
ewaller wrote:

What happens if you change consoles and log into a terminal?

I switch to tty and there I can log in my user but not in root

Now that is interesting.   I only use a US layout;  does anyone who uses different layouts know if one needs to change the layout for root?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2023-11-28 16:14:38

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: sudo password don't work

The console keyboard layout is set in /etc/vconsole.conf and applies to all users, including root.


Jin, Jîyan, Azadî

Offline

#11 2023-11-28 16:30:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,313

Re: sudo password don't work

sudo passwd -S root

the sudo password doesn't work, but i don't know why.

Neither do we.
What's the actual error message?
Do you authenticate as your regular user or root?

astralc wrote:

maybe faillock - several failed attempts cause using password to be blocked (I think failing also include sudo timeout)

I have restarted this, IIhope it doesn't give me more errors

So faillock was in place and resetting it fixed the problem?

Something triggers faillock - either you, fat-fingering passwords, or some script/cron-job that runs sudo and times out on the password because there's no interface and nothing provides it.
sudo gets audited, so check your system journal itr.

Online

Board footer

Powered by FluxBB