Hello everyone,
I ran $yum update -y and a bunch of packages were updated. I go to run a command requiring sudo and I get an error message stating that my username is not in the sudoers file. Luckily, I had access to the root account and when I used visudo to check the sudoers file, it was completely reset with no %wheel group added.
I ran $sudo yum history info sudo
and it shows
Updated sudo-1.8.23-4.el7.x86_64 @anaconda
Update 1.8.23-4.el7_7.1.x86_64 @updates
How can I prevent this from happening in the future? Is this a bug? Thanks!
Sudoers file reset after updating with yum
Re: Sudoers file reset after updating with yum
Put your config in etc/sudoers.d/