change the permission of all the files in the current directory to 664 and change the permission of all the directories  in the current folder to 775.
find . \( -type f -exec sudo chmod 664 "{}" \; \) , \( -type d -exec sudo chmod 775 "{}" \; \)