You can run the following command as root under a particular directory inorder to change the permissions of the files to 644 and the permissions of directories to 755 recursively.

 

root@server]# find . -type d -exec chmod 755 {} ; && find . -type f -exec chmod 644 {} ;