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
# Fix user and directory permissions: | |
find . -type f -print0 | sudo xargs -0 chmod 664 | |
find . -type d -print0 | sudo xargs -0 chmod 775 | |
# Copy user permissions to group permissions: | |
chmod -R g=u . | |
# Make new files inherit the group of the container directory | |
chmod g+s <directory> |