Commanding Chaos for Coworking, Open Source and Creative Communities

Securing file permissions and ownership | Drupal.org

Wed, 05/25/2016 - 12:32 -- rprice

Script based on guidelines given above

If you need to fix permissions repeatedly then the following script will help you, it is based on the guidelines given above and performs some checks before any modification to ensure it is not applied on files/directories outside your Drupal installation.