I think I finally got the whole directory permission thing. Damn umask