To change the file permissions of a folder and all subfolders:

find /path/to/folder -type d -exec chmod 775 {} \;<br></br>
To change the file permissions of all files including the ones in subfolders (without changing the permissions of the folders itself):

find /path/to/folder -type f -exec chmod 664 {} \;<br></br>