You are not logged in.

#1 2023-04-07 10:48:46

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 43

[SOLVED] sudo issue

During the installation I added a new user with:

useradd -m -G wheel,sys -s /bin/bash [new_user]

# then

EDITOR=nano visudo

and I uncommented the appropriate line to allow members of group wheel to execute any command. After reboot, I tried to remove a package with:

sudo pacman -Rs [package]

but I got the message:

sudo: you are not permitted to use the -R option with [package]

I can install packages, but I cannot remove them.
What shoud I do? Many thanks in advance.

Last edited by mtubarch (2023-04-07 13:17:56)

Offline

#2 2023-04-07 11:58:16

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: [SOLVED] sudo issue

If you add your user to the wheel group, there is no need to add to sys additionally. See also Users and groups. Please post your /etc/sudoers in code tags.

Offline

#3 2023-04-07 12:10:46

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 43

Re: [SOLVED] sudo issue

hcjl wrote:

If you add your user to the wheel group, there is no need to add to sys additionally. See also Users and groups. Please post your /etc/sudoers in code tags.

In the sudoers file I uncommented:

%wheel ALL=(ALL:ALL) ALL

Thanks for the tip. So, should I remove sys?
Btw, without modification, now I am able to use the -Rs command... I don't know why.

Offline

#4 2023-04-07 12:59:53

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: [SOLVED] sudo issue

Maybe logging out/in solved it. Yeah, as wheel already gives you access to printer administration I personally would remove sys.

Last edited by hcjl (2023-04-07 13:00:13)

Offline

Board footer

Powered by FluxBB