Before I start, I am no Linux expert by any means, I just know the basics and am still at the beginning of my Linux/Server journey.
I messed up, I've used chmod before but now I used it in the root directory.
Since I couldn't see my directories as a root user (I'm pretty sure), I accessed root with
sudo su -
and then ran
chmod -R 777 /
in the root directory. Now every time I try to use sudo I get this:
sudo: /etc/sudo.conf is world writable
sudo: /etc/sudo.conf is world writable
sudo: /etc/sudoers is world writable
sudo: error initializing audit plugin sudoers_audit
I tried looking up a solution, but since I can't use sudo everything seems to be useless.
What I tried: pkexec chmod 555 /etc/sudoers >> Authentication failure pkexec chmod 0440 /etc/sudoers >> Authentication failure
Did I mess the whole system up now? I hope anyone can give me feedback, and hopefully tell me that my mess can be fixed