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