Skip to content

Instantly share code, notes, and snippets.

@trq
Created May 16, 2014 04:31
Show Gist options
  • Save trq/1aa9cf7a69c31af0a797 to your computer and use it in GitHub Desktop.
Save trq/1aa9cf7a69c31af0a797 to your computer and use it in GitHub Desktop.
sudo chown -R $USER:www-data /var/www
find /var/www -type d -exec chmod 775 {} \;
find /var/www -type d -exec chmod 664 {} \;
chmod g+s /var/www
@trq
Copy link
Author

trq commented May 16, 2014

sudo chown -R $USER:www-data /var/www
find /var/www -type d -exec chmod 755 {} ;
find /var/www -type f -exec chmod 644 {} ;
chmod g+s /var/www

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment