chmod -R o-x dirname/
would take recursively eXecution permissions off from "other" users (than owner or owner group). So just use chmod
for owners) with the -R
flag to make it run recursively, i.e. do the job for all sub-files and -diretories (directories are, by the way, only special files on UNIX).