Is there a guide to what the file permissions should be?  i.e., what directories should be write-able, aka what to chmod ?

I looked through the docs but couldn't find one.  The installer is complaining about all sorts of directories, but I don't want to go through and mass-777 things without a good reason.

Thanks!