I'm on an amazon ec2 instance. I ran a script that inadvertently changed the owner of the /etc/sudoers files. Now I can not longer run any commands with sudo. Root does not have a password so I can't log in with that.
I followed the instructions at https://aws.amazon.com/premiumsupport/knowledge-center/ec2-sudo-commands/ which have you upload a bash script that I assume runs upon reboot. However, after rebooting the machine, the permissions on the /etc/sudoers file are still owned by admin, not root.
Anyone know what I can do to get this script to work? I'm running debian version 10 (buster).