You are not logged in.

#1 2024-08-17 06:58:06

timeon
Member
Registered: 2016-10-17
Posts: 14

sudo is passwordless although NOPASSWD option is not set

Hi,
when I run sudo, I am not asked for a password. I do not want his behaviour. I checked the /etc/sudoers file but the NOPASSWD option is commented out.

What else could cause sudo not prompting me for a password?

Offline

#2 2024-08-17 06:59:03

cryptearth
Member
Registered: 2024-02-03
Posts: 2,167

Re: sudo is passwordless although NOPASSWD option is not set

please share your config - make sure to use code-tags

Offline

#3 2024-08-17 07:35:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,828

Re: sudo is passwordless although NOPASSWD option is not set

cryptearth wrote:

please share your config - make sure to use code-tags

Specifically "sudo -l", don't (start by) post your complete sudoers.

Offline

#4 2024-08-17 13:58:32

timeon
Member
Registered: 2016-10-17
Posts: 14

Re: sudo is passwordless although NOPASSWD option is not set

sudo -l
User xxx may run the following commands on xxx:
    (ALL : ALL) ALL

I replaced username and machine name with xxx

Last edited by timeon (2024-08-17 13:58:55)

Offline

#5 2024-08-17 14:55:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,828

Re: sudo is passwordless although NOPASSWD option is not set

So you're not running nopasswd unless you fudged around w/ the pam configuration.

sudo -k
sudo ls # does this ask for the password
pacman -Qikk sudo pam pambase

Offline

Board footer

Powered by FluxBB