sudo: /etc/sudoers is owned by gid 1000, should be 0
Maybe you accidently
chmod'd files recursively where the etc directory was effected. Maybe you did the same thing I did & chowned /etc/sudoers to root:mygroup instead of
root:rootlike it's supposed to be.
In any event you're looking at a message like the one above and you can't use
sudoanymore. This is because the sudo application wants things exactly right or it assumes there's been a compromise.
The file /etc/sudoers should be owned by root:root and should not be readable by anyone other than root.
Unless for some reason you allow remote root logins, you will need to physically have the server in front of you to fix this issue. If you don't have a monitor hooked up to the system, you better find a monitor to hookup now.
If you have the root password, login as root &
chownthe file to root:root.
root@box:~$ chown root:root /etc/sudoers
chmodthe /etc/sudoers to 0440.
root@box:~$ chmod 0440 /etc/sudoers
If you, like I, never set a root password, you'll need to reboot the system, press ESC during boot, & select the recovery mode from the boot options. That will give you a terminal logged in as root you can use to run the
Once the proper ownership & permissions are set on that file you can restart the system as usual &
sudoshould be up and running again.