Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save QuestionDevelopment/6323314 to your computer and use it in GitHub Desktop.
Save QuestionDevelopment/6323314 to your computer and use it in GitHub Desktop.
set file and folder permissions
find /var/www/ -type d -not -iwholename '*.svn*' -print0 | xargs -0 chmod 755
find /var/www/ -type f -not -path '*.svn*', -not -path '*.ssh*', -not -iwholename '*.sh*' -print0 | xargs -0 chmod 644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment