Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rderik
Last active February 8, 2018 21:48
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 rderik/024ed2b7e0b47ea15670b92ad3269edd to your computer and use it in GitHub Desktop.
Save rderik/024ed2b7e0b47ea15670b92ad3269edd to your computer and use it in GitHub Desktop.
Applies standard secure file permissions to normal files and directories
#search for Directories and set the permissions to 755
find . -type d -exec chmod 755 {} \;
#search for files and set the permissions to 644
find . -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment