You are not logged in.

#1 2025-01-08 04:21:48

jschoen
Member
Registered: 2025-01-08
Posts: 2

Issues with acting as sudo

Essentially the title. At first, when running as sudo, it said I was not in the sudoers file (I've been running arch for a little over a month and have run sudo plenty).

❯ yay
[sudo] password for <user>:
<user> is not allowed to run sudo on pondering-pad.
 -> error refreshing databases - exit status 1

I added myself, and the wheel group, and now it just says my user is not allowed to run sudo. I believe it a groups issue, because of the following outputs

❯ groups
audio <user>

❯ groups $USER
root wheel audio nvidia-persistenced wireshark pcap libvirt-qemu qemu docker <user>

My sudoers file (relevant portion) looks like:

##
## User privilege specification
##
root ALL=(ALL:ALL) ALL
<user> All=(ALL:ALL) ALL

## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL:ALL) ALL

And I believe this output may help:

[root@pondering-pad etc]# ls /etc/sudoers.d
10-installer

I know I shouldn't be adding myself to the root group, but I was just trying to get it to work. If anyone has any suggestions to help me out, I'd really appreciate it. Thank you!

If you need other information, let me know

Offline

#2 2025-01-08 04:40:07

jschoen
Member
Registered: 2025-01-08
Posts: 2

Re: Issues with acting as sudo

Sike, after doing like my 3rd reboot, it decided to work lol

Offline

#3 2025-01-09 17:20:45

theRedCyclops
Member
Registered: 2022-06-17
Posts: 67

Re: Issues with acting as sudo

If your issue is solved please mark it by adding [SOLVED] to the start of the title

Offline

Board footer

Powered by FluxBB