#Example Drupal permissions Setup credit: FranCarstens
CPanel User: username Site Root: /home/username/public_html Ownership
chown -R username:nobody /home/username/public_html
chown username:nobody /home/username/tmp
find /home/username/public_html/modules -type d -exec chmod 750 {} +
find /home/username/public_html/modules -type f -exec chmod 640 {} +
find /home/username/public_html/themes -type d -exec chmod 750 {} +
find /home/username/public_html/themes -type f -exec chmod 640 {} +
find /home/username/public_html/sites/all/modules -type d -exec chmod 750 {} +
find /home/username/public_html/sites/all/modules -type f -exec chmod 640 {} +
find /home/username/public_html/sites/all/themes -type d -exec chmod 750 {} +
find /home/username/public_html/sites/all/themes -type f -exec chmod 640 {} +
find /home/username/public_html/sites/default/files -type d -exec chmod 770 {} +
find /home/username/public_html/sites/default/files -type f -exec chmod 660 {} +
find /home/username/tmp -type d -exec chmod 770 {} +
chmod 440 /home/username/public_html/sites/default/settings.php
chmod 750 /home/username/public_html/sites/default