You are not logged in.

#1 2021-05-30 08:23:25

burli
Member
Registered: 2021-05-30
Posts: 3

[SOLVED] sudo without password

Hi, I have installed Arch from scratch as minimal installation. I just installed Xmonad and some other packages. Everything works so far, but if I run sudo I don't need to enter a password.

It is not a big deal because there is nothing important on this computer, but I wonder what went wrong. What do I need to change to make this computer more secure?

Last edited by burli (2021-05-30 09:47:48)

Offline

#2 2021-05-30 08:30:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,334

Re: [SOLVED] sudo without password

You are either already running as root or you misconfigured your sudoers. Or you did run sudo with a password in the past 15mins in which case it would be cached for that amount of time

Offline

#3 2021-05-30 08:34:32

burli
Member
Registered: 2021-05-30
Posts: 3

Re: [SOLVED] sudo without password

If I don't type sudo I don't have root. And I never need to enter a password for sudo. I followed the instructions in the Wiki to install Arch. Don't know what went wrong.

Offline

#4 2021-05-30 08:53:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,334

Re: [SOLVED] sudo without password

sudo is not configured by default for any user other than root, what did you do to your sudoers? Which groups does your user belong to and which uid/gid did you choose?

Post the output of

id
sudo cat /etc/sudoers

in

[code]code tags[/code]

tags

Last edited by V1del (2021-05-30 08:56:14)

Offline

#5 2021-05-30 09:15:53

burli
Member
Registered: 2021-05-30
Posts: 3

Re: [SOLVED] sudo without password

Oh, I think I got it. I uncomment the wrong line in /etc/sudoers. I accidentally uncomment the line with "NOPASSWD".

Works now, thanks for your help

Offline

#6 2021-05-30 09:31:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,334

Re: [SOLVED] sudo without password

glad to hear, please mark as [SOLVED] by editing the title in your first post: https://gitlab.archlinux.org/archlinux/ … ow-to-post

Offline

Board footer

Powered by FluxBB