chmod recursive directories only

Apache

chmod recursively to directories only, adjust -type d to -type f to target files exclusively

Code

find /DIRECTORY -type d -exec chmod 755 {} \;