chmod directories only

To chmod only directories within the directory you're in...

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

To chmod only files within the directory you're in...

find . -type f -exec chmod 644 {} \;

Tags: Linux admin