Title says it all. I was copy-paste troubleshooting and I accidentally changed the owner of sudo from root
to my username. No I can't sudo
because:
sudo: effective uid is not 0, is sudo installed setuid root?
So I tried chown root: sudo
but I was told:
chown: changing ownership of ‘sudo’: Operation not permitted
I can't mount -o rw,remount
because:
mount: only root can use "--options" option
And obviously I can't sudo
that last one.
Am I out of luck or is there any method by which I can get my sudo
back?