Revert permission of /usr back to root
- by Rodrigo Sasaki
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