Set permissions right
We want to set all files to 660 and all directories to 770.
find mydir -type d -exec chmod 770 '{}' \;
find mydir -type f -exec chmod 660 '{}' \;
We want to set all files to 660 and all directories to 770.
find mydir -type d -exec chmod 770 '{}' \;
find mydir -type f -exec chmod 660 '{}' \;