Skip to content

Instantly share code, notes, and snippets.

@t3easy

t3easy/chmod.sh Secret

Forked from alexanderschnitzler/chmod.sh
Last active August 29, 2015 13:57
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 t3easy/c2a7eccf2c77f8d1c42f to your computer and use it in GitHub Desktop.
Save t3easy/c2a7eccf2c77f8d1c42f to your computer and use it in GitHub Desktop.
# As Markus Blaschke pointed out there is a way better solution to this. Thanks!
# https://twitter.com/MarkusBlaschke
for folder in fileadmin typo3conf typo3temp uploads
do
find $folder -type d -print0 | xargs -0 chmod 2770
find $folder -type f -print0 | xargs -0 chmod 0660
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment