Revert permission of /usr back to root

Posted by Rodrigo Sasaki on Ask Ubuntu See other posts from Ask Ubuntu or by Rodrigo Sasaki
Published on 2014-06-02T19:18:45Z Indexed on 2014/06/02 21:45 UTC
Read the original article Hit count: 304

Filed under:
|

I was doing some alterations but in one I messed up.

I changed the permissions of almost everything inside the /usr folder to my own user. It didn't change everything because it failed in the middle of the execution, I still have /sbin, /share and /src assigned to root.

the command I ran was this (this was executed while inside /usr):

sudo chown -R myuser:myuser .

Is there any way for me to revert this?

If I run:

sudo chown -R root:root .

I get this error:

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

© Ask Ubuntu or respective owner

Related posts about permissions

Related posts about chown