The -type d switch is the key:
> find . -type d -exec chmod 755 {} \;
This will recursively search your directory tree (starting at the current directory) and chmod 755 all directories only.
Similarly, the following will chmod all files only (and ignore the directories):
find . -type f -exec chmod 644 {} \;
source: http://movabletripe.com/archive/recursively-chmod-directories-only/ At this source, there is discussion and additional find commands from responders.
If you find this post helpful, please click an ad below. Thanks!