Created
May 12, 2020 14:08
-
-
Save taivu/02fb8e98bc5f01a524fc8cb7e8afde3c to your computer and use it in GitHub Desktop.
Drupal File Directory Permissions
This file contains hidden or 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
| # Sometimes copying files directly from a vagrant sandbox will results in all files and directories being 777 | |
| # These two commands will make every file and directory under the current working directory have normal permission flags. | |
| # These commands should be run in the `/private_files` and `/pub/sites/default/files` folder. | |
| # | |
| # Directories: rwxrwxr-x | |
| # Files: rw-rw-r-- | |
| find . -type d -exec chmod 0775 {} + | |
| find . -type f -exec chmod 0664 {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment