chmod directory only or file only

//

//

Chmod just directories

find -type d -print0 |xargs -0 chmod 755

Chmod just files

find -type f -print0 |xargs -0 chmod 644

Source: http://forums.whirlpool.net.au/archive/323231