Skip to content

Instantly share code, notes, and snippets.

@AdamLawicki
Created October 18, 2015 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamLawicki/91d6a12065ba1c628490 to your computer and use it in GitHub Desktop.
Save AdamLawicki/91d6a12065ba1c628490 to your computer and use it in GitHub Desktop.
Change directory permissions of /var/www and subdirectories to enable group write permissions and set group ID on future subdirectories
[ec2-user wordpress]$ sudo chmod 2775 /var/www
[ec2-user wordpress]$ find /var/www -type d -exec sudo chmod 2775 {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment