-1

My intern ran the command: chmod 777 /etc/

So now i can't run any command using sudo and i can't login with root to resolve the problem because i don't know the root password.

I tried run pkexec chmod 555 /etc/sudoers, but I don't know the root password.

I tried login with root but I don't have permission.

I tried edit vi /etc/init.d/sshd, but I don't have permission.

when i ran the command sudo su, i have the following return:

sudo: /etc/sudo.conf is world writable sudo: /etc/sudo.conf is world writable sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin

What can i do to resolve the problem ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.