My setup is the following:
Multiple users coding for the one website Each user has their own username/group Websites are located in /usr/local/ourcompany/websites/sitename/*
./websites/ is owned by
me:ourcompany. I set this folder and all it's subfolders to be writable by group.
chmod g+ws websites
This takes care of most the permission issues. It allows everyone in the
ourcompany group to edit the website files. The problem is when uploading files via PHP.
PHP is running as
www-data. This seems to break the setuid group writable setting.
I'm running Nginx, if that's relevant...