I am on a shared server (DreamHost). My RoR project contains
confidential information in the structure of its code, its logs, and of
course its mysql database.
W are the minimum chmod permissions to set so that the app is still
served correctly by Apache, but otherwise grants minimum world access?
Most just leave it at “chmod -R 755 rorfolder” but that’s a bit too
open for my taste. Do I have to have all the code be o+r?
I am on a shared server (DreamHost). My RoR project contains
confidential information in the structure of its code, its logs, and of
course its mysql database.
W are the minimum chmod permissions to set so that the app is still
served correctly by Apache, but otherwise grants minimum world access?
Most just leave it at “chmod -R 755 rorfolder” but that’s a bit too
open for my taste. Do I have to have all the code be o+r?
I’m assuming the user owns the directory so you have to set 701 on the
root and public directory so apache can access them as other. I’m
assuming the dispatch file is being suexeced so that could be 700. All
other directories should be 700 and all other files should be 600.