Directories#
To make all directories below current group executable without making all files executable, run
$ find . -type d -exec chmod 770 {} \;
Files#
The following will chmod all files only (and ignore the directories):
$ find . -type f -exec chmod 644 {} \;
Sources#
http://movabletripe.com/archive/recursively-chmod-directories-only/
Linux.Shell - Mac.Shell