Skip to content

Instantly share code, notes, and snippets.

@AdamLawicki
Created October 18, 2015 19:47
Show Gist options
  • Save AdamLawicki/1fe7d4de8bc3e81d75f7 to your computer and use it in GitHub Desktop.
Save AdamLawicki/1fe7d4de8bc3e81d75f7 to your computer and use it in GitHub Desktop.
Alter directory permissions of /var/www (and subdirectories) to add group write permissions and set group ID on future subdirectories
[ec2-user ~]$ sudo chmod 2775 /var/www
[ec2-user ~]$ 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