Skip to content

Instantly share code, notes, and snippets.

@taivu
Created May 12, 2020 14:08
Show Gist options
  • Save taivu/02fb8e98bc5f01a524fc8cb7e8afde3c to your computer and use it in GitHub Desktop.
Save taivu/02fb8e98bc5f01a524fc8cb7e8afde3c to your computer and use it in GitHub Desktop.
Drupal File Directory Permissions
# 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