Sudoers file reset after updating with yum

Issues related to applications and software problems
Post Reply
triptronics
Posts: 1
Joined: 2019/11/13 18:25:59

Sudoers file reset after updating with yum

Post by triptronics » 2019/11/13 18:32:06

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!

aks
Posts: 2859
Joined: 2014/09/20 11:22:14

Re: Sudoers file reset after updating with yum

Post by aks » 2019/11/17 07:29:35

Put your config in etc/sudoers.d/

Post Reply

Return to “CentOS 7 - Software Support”