Skip to content

Instantly share code, notes, and snippets.

@bitkidd
Last active December 29, 2015 04:36
Show Gist options
  • Save bitkidd/e7d6555326cb9946c3e6 to your computer and use it in GitHub Desktop.
Save bitkidd/e7d6555326cb9946c3e6 to your computer and use it in GitHub Desktop.
readonly permissions for files and folders
find /var/www/html -type f -iname "*" -print0 | xargs -I {} -0 chmod 0444 {}
find /var/www/html -type d -iname "*" -print0 | xargs -I {} -0 chmod 0544 {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment