You are not logged in.
Pages: 1
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
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
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
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
Pages: 1