I entered "sudo chmod 770 /" on terminal. Is it fixable?

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?

1

2 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.

1

Was 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 /.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like