We use an automated deploy system when developing with Craft.
We have a deploy user "deploy" and a web server user "www-data"
Deploy is a member of the www-data group.
Our first few deployments went fine but when we hit the point where the system started deleting old version (15 or so in) we started getting errors where it couldn't delete the old files properly.
On examination folders created here -
/craft/storage/runtime/compiled_templates have the permission
drwxr-xr-x so only www-data can edit/write to them. Is there anyway we can make this group writable when created rather than having to do a manual clean up?