I accidentally executed
sudo chmod -R 777 /
I was actually trying to change a specific folder permission recursively, btw i did stop the command before it changed everything.
But now, i can't execute for example
Every time i try to sudo something it throws me this error:
effective uid is not 0, is sudo installed setuid root?
Btw i know i can use
chown -R root:root /usr/bin where sudo is located, but of course i don't have the permissions to do this.
So, how can i revert this process? Or at least save the
sudo file without reinstalling everything?
The system is still connected to the internet and seems to work fine besides the sudo issue.
Thanks in advance.