I was trying to deny permissions to access the root folder to all non sudoers, and had the (NOT) brilliant idea to run sudo chmod 770 /. Now I get permission denied for all commands.
I am running Ubuntu 15.10 on Virtual Box and the installation is encrypted.
How can I fix it?
12 Answers
Luckily you haven't used -R option so you can easily revert it by following command:
sudo chmod 755 /755 is the default permissions for the / directory.
1Was able to fix it by booting into a root shell following the procedure in the answer to this question: How do I boot into a root shell?
And entering chmod 755 /.