AWS ec2-user sudo.conf permissions error fix

I show how to fix an error similar to “sudo: /etc/sudo.conf is owned by uid 500, should be 0” when using sudo on Amazon EC2.