Often I find myself downloading ZIP files, and after unarchiving them all the files have totally incorrect permissions such as 777 for all files and folders.
Go into the directory main directory at the top of the file/folder hierarchy and run the following commands to resolve this:
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;