So, you broke up the file tree permissions, someone did it for you or sent you a tar/zip with all chmod 777.

There is how to get those perms back on track:

For directories only you can do this.

find /some/place -type d -exec chmod 775 {} \;

For files only do this.

find /some/place -type f -exec chmod 664 {} \;