Created
August 1, 2016 08:18
-
-
Save klprint/4b9dff6b8875852eb21ddc5e51df7602 to your computer and use it in GitHub Desktop.
Change chmod for folder & all subfolders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: Stackoverflow