Rescue data on Oracle Cloud after "chmod 700 -r /"

I’ll preceed by saying I’m a novice in unix, I use Oracle Always Free for small personal projects. Also this is me trying to save the data specifically on Oracle Cloud.

I accidentally ran sudo chmod 700 -R / on an Oracle Always Free instance, when trying to run it on ./ Now I think I’m locked out of the instance, I no longer can connect to the instance through ssh. Is there anyway to secure specific directories before blasting the instance and starting over?

Asked By: Victor Lundgren


In virtualized environments (whether on-premises or in a cloud), trying to boot the virtual machine from an external boot media can sometimes be difficult.

In such cases, it might be easier to disconnect the virtual disk(s) from the failed VM, and connect them as additional disk(s) to another, working VM instance, and then use that instance to recover your data.

While it’s technically possible to recover after a recursive chmod from the root directory by first using the package management tools to restore standard permissions to system files and directories, and then going through all the remaining files and directories manually, it might not be the most optimal use of your time and effort.

Restoring from a full backup would definitely be easier and faster; depending on the complexity of the software installed to the cloud instance and the level of automation you’ve created for your cloud setup, even a full reinstallation might be.

Answered By: telcoM
Categories: Answers Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.