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/4b9dff6b8875852eb21ddc5e51df7602 to your computer and use it in GitHub Desktop.
Save klprint/4b9dff6b8875852eb21ddc5e51df7602 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 {} \;
@klprint
Copy link
Author

klprint commented Aug 1, 2016

Source: Stackoverflow

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