Skip to content

Instantly share code, notes, and snippets.

@monokrome
Created June 19, 2011 01:59
Show Gist options
  • Save monokrome/1033665 to your computer and use it in GitHub Desktop.
Save monokrome/1033665 to your computer and use it in GitHub Desktop.
Fixes permissions for /var/www on my Ubuntu machine
#!/usr/bin/env bash
chown -R www-data:www-data /var/www
chmod -R 660 /var/www
find /var/www -type d -exec chmod 770 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment