That'll help

And just a note, look into those chmod 777's. I think that's a bit too permissive as it means they're world writable.
Use groups to define the correct permissions. Users can be members of multiple groups.