Skip to content

Instantly share code, notes, and snippets.

@klprint
Created August 1, 2016 08:18
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 klprint/e789af555901ec86e7bf7840ca2431df to your computer and use it in GitHub Desktop.
Save klprint/e789af555901ec86e7bf7840ca2431df to your computer and use it in GitHub Desktop.
Change chmod for folder & all subfolders
# Sets chmod 755 for folder and all subfolders
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
# Sets chmod 655 for all files in this folder & subfolder
find /opt/lampp/htdocs -type f -exec chmod 644 {} \;
@jonathanlyonmoore
Copy link

you made a 644 typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment