I accidentally changed ownership of /usr/bin/sudo
to my current user (i also did this for some other stuff in my /usr
directory). I can't change any of them back because I need ownership of /usr/bin/sudo
to be root to do so. I do not have root access because I'm on an Amazon EC2 instance running linux.
Here's what I did (foolishly I know):
sudo chown -R ec2-user.ec2-user /usr/
I've also hosed a ton of other stuff in the process, but I think it can all be solved if I can reset ownership of /usr/bin/sudo
Please help. I'm brand new to Linux admin and am doing everything from the command line.
I have my important data on a separate, mounted EBS, but I'm awful with server admin and it'll probably take me an entire day to setup a new instance, but am afraid that is my only option.