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 argument a-x shown above can be any valid argument for the chmod command.