Skip to content

Instantly share code, notes, and snippets.

@benjcal
Last active January 24, 2018 23:16
Show Gist options
  • Save benjcal/1a2cbacf9c6def52ac6f5d5ad20718a8 to your computer and use it in GitHub Desktop.
Save benjcal/1a2cbacf9c6def52ac6f5d5ad20718a8 to your computer and use it in GitHub Desktop.
www-data permissions
sudo chown -R admin:www-data /var/www;
sudo find /var/www -type f -exec chmod 664 {} \;
sudo find /var/www -type d -exec chmod 775 {} \;
sudo find /var/www -type d -exec chmod g+s {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment