Drupal: Set file permission on filesystem with a shell script

This script is to set all file permissions at once for a Drupal website.

# Script made by David Rush, davidprush@gmail.com
# Changes the permissions of the Drupal sites directory to secure after isntallation
# Very Important Put this script in the same directory as your site/ directory

Set Linux file permission for Dupal website

chown -R USER:www-data .
find . -type d -exec chmod u=rwx,g=rx,o= '{}' \;
find . -type f -exec chmod u=rw,g=r,o= '{}' \;

* change USER to your linux username