You are not logged in.

#1 2024-05-23 07:34:44

mester
Member
Registered: 2023-09-05
Posts: 14

My sudoers file is strange

I have my user in my sudoers file using my user in wheel, but now the sudo command tell me that my user isn't in sudoers, I don't use root, but with my actual situation I can't reinstall the system because I have work an things releated and I can access as root to solve the problem someone knows how to solve this

Offline

#2 2024-05-23 08:49:07

cloverskull
Member
Registered: 2018-09-30
Posts: 181

Re: My sudoers file is strange

Hmm, I wonder if the sudo package was upgraded and overwrote your sudoers file.

Anywho try using 'su' and see if that works.

If that doesn't work, make an Arch install USB, boot from it, chroot into your installed arch, make sure your main user has the right group memberships and also edit the sudoers file from the chroot

Offline

#3 2024-05-23 10:33:43

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 12,062
Website

Re: My sudoers file is strange

Please post the output of

id
sudo -l
stat /etc/sudoers

Mod note: Moving to Newbie Corner.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2024-05-23 12:13:00

ua4000
Member
Registered: 2015-10-14
Posts: 434

Re: My sudoers file is strange

cloverskull wrote:

Hmm, I wonder if the sudo package was upgraded and overwrote your sudoers file.

no new version in the last days

sudo 1.9.15.p5-1
Last Updated:	2024-01-10 09:58 UTC

but maybe it was forcibly re-installed by the OP ?

@mester
You could also post your
/var/log/pacman.log
e.g. the lines from the last few week, + a little before your problem started. In case you can't access the file: copy it with a live system...

Offline

#5 2024-05-23 17:23:59

BluePyTheDeer_
Member
Registered: 2024-05-23
Posts: 21

Re: My sudoers file is strange

I am new to Arch, but did you modify the visudo file so the wheel users can use sudo commands?


I messed my Arch Linux installation, then fixed it smile

Offline

#6 2024-05-24 01:01:15

Retr0r0cket
Member
From: Sol III
Registered: 2021-11-24
Posts: 27

Re: My sudoers file is strange

cloverskull wrote:

Hmm, I wonder if the sudo package was upgraded and overwrote your sudoers file.

That happened to me a few times so what I started doing was

echo "%wheel ALL=(ALL:ALL) ALL" > /etc/sudoers.d/wheel

No more overwrite issues bc the update doesn't modify anything in /etc/sudoers.d but it still reads the files from it

Last edited by Retr0r0cket (2024-05-24 01:02:55)

Offline

Board footer

Powered by FluxBB