Created
May 23, 2019 15:42
-
-
Save leogallego/ac18185e54e5dcaf598a748823f76832 to your computer and use it in GitHub Desktop.
www-data permissions cases
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
# Set all directories permissions to 755 / rwx-r-x-r-x | |
find . -type d -exec chmod 755 {} \; | |
# Set all files permissions to 644 / rw-r--r-- | |
find . -type f -exec chmod 644 {} \; | |
# Set all directories permissions to 555 / r-x-r-x-r-x (read only) | |
find . -type d -exec chmod 755 {} \; | |
# Set all files permissions to 444 / r--r--r-- (read only) | |
find . -type f -exec chmod 644 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment