find /var/www/site1 -type d -exec sudo chmod 2775 {} + find /var/www/site2 -type f -exec sudo chmod 0664 {} +