Are there recommended directory ownership and permission settings for CiviCRM files?
These are the Unix/Linux permissions I tend to set my permissions for CiviCRM directories in Drupal 7:


chmod 555 sites/default
chmod 644 sites/default/settings.php
chmod 644 sites/default/civicrm.settings.php
chmod 770 sites/default/files
chmod 755 sites/default/files/civicrm


I generally have the ownership set to the hosting account username and the group to the server group, like apache so something like:


sudo chown username:daemon -R httpdocs