# 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 {} +