Skip to content

Instantly share code, notes, and snippets.

@mblarsen
Last active July 12, 2016 06:36
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 mblarsen/d5cc8449ba4664350916eca2b0f23cfa to your computer and use it in GitHub Desktop.
Save mblarsen/d5cc8449ba4664350916eca2b0f23cfa to your computer and use it in GitHub Desktop.
#!/bin/bash
# typical htdoc file and directory permissions
# + -o is a way to combine multiple finds in one
sudo find . -type d -exec chmod 755 {} + -o -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment