codem / DisplayAnything3

File and image gallery module for SilverStripe3.0
BSD 3-Clause "New" or "Revised" License
12 stars 8 forks source link

File and Directory permissions may be too strong #5

Closed MrJamesEllis closed 12 years ago

MrJamesEllis commented 12 years ago

We ship with a file mask of 0640 and directory mask of 0750.

In some crappy shared hosting environments these are too strong and can cause file not found errors. The permissions need to be relaxed to 0644 / 0755 respectively.

Keep as current as it encourages better security practises but add a troubleshooting line regarding this. The masks can be changed on gallery field creation.

MrJamesEllis commented 12 years ago

Allowed configuration of this at runtime:

https://github.com/codem/DisplayAnything3/commit/b43d6e4ab80970816d95b937ca187a346fc80fba