To change directory or file permissions recursively you can do the following:

$ find path/ -type d -exec chmod a-x {} \;

Change the d to an f for files.

Note: The a-x can be any valid argument for the chmod command.