find /path/to/drupal -type f -exec chmod 664 {} \;
# chat
a
find /path/to/drupal -type f -exec chmod 664 {} \;