0

While in the root account I accidentally entered: chmod 700 /

After that I can't do any sudo commands, e.g:

/home# sudo apt-get update
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

Is there a way to fix this?

1 Answers1

1

You changed the permissions of the root folder to a very restrictive state, causing some processes not to have access anymore. Restore to default with the command

sudo chmod / 755

Fortunatelly, you did not add the recursive switch. The damage is only to the root folder itself, and thus can be easily repaired.

vanadium
  • 97,564