After the reboot I tried running sudo powertop --sample to monitor my laptops battery, but now the terminal throws an error saying user_name is not in the sudoers file.
After a brief google search, I tried running the following command as root:
usermod -a -G wheel user_name
But this didn’t work. I’m still looking for a solution on my own, but I would be very grateful if any of the more experienced users in the community could point me in the right direction.
Although I don’t think that should be fatal, it does seem worse than what I was expecting. So I think I will let someone with more knowledge take over.
There was also a .pacnew for sudoers today, albeit that it’s probably not pertinent. But at least the OP is hereby alerted to the fact that they need to merge their .pacnew(s).
I changed my username to MY_USER_NAME and my full name to MY_FULL_NAME in the second to last line.
EDIT: I could not run the second command you gave me (sudo cat /etc/sudoers)with sudo, so I enabled root privileges with su root and tried again. It gave me no output.
The command sudo visudo -c gives me the following output running it as root:
/etc/sudoers: parsed OK
EDIT 2: I could not run the command below. It says command not found. I thought perhaps it is a tool that I need to install but pamac can’t find it either:
Do you have the sudo package?
It should provide those files along with the tool.
Yes, doubled checked it using pacman -Qs.
Was this a relatively new install (if so - which ISO)?
And it was working previous (sudo included)?
Did your update complete successfully?
It is less than a week old. This is the GNOME ISO (stable branch). I know sudo was working before the upgrade because I ran powertop right after booting the first time, so I could monitor my laptop’s battery. The command worked as expected.
After updating the system with pamac (using the GUI method) the software center told me the update was successful, but a restart was required. I encounter the issue after that.
However, I don’t think the update was actually successful as running pacman -Syu as you instructed found quite a lot of pending updates.
Fortunately, all your questions about my ISO reminded me that I selected btrfs as my filesystem during installation!
I was able to restore my system using a snapshot of three days ago and after checking that I could use sudo normally again, I updated my system running pacman -Syu instead of using pamac. One reboot later and I’m having no issues, so I guess this is it?
Thank you so much for taking the time to help me, you are the best!