Cannot sudo coz tried to chown all files to ubuntu:ubuntu

terminal

#1

Hi fellow C9ers.

I ran this command: sudo chown ubuntu:ubuntu -R /

And now I get this error when I use sudo.

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Can this be fixed?
What I’ll do is push to GitHub then clone to a new workspace…


#2

Replacing the workspace sounds like an easier option if you can get your files out.