Drupal Association members fund grants that make connections all over the world.
I am working on a server where more than one user has ssh access, and there is more than one project. Only one user has root access, other users are restricted to specific projects.
So, here is how the permissions are configured. All files have group read and write access.
project_A/* is in group_A
project_A/sites/sitename/files/* is in group www-data
project_B/* is in group_B
project_B/sites/sitename/files/* is in group www-data
www-data user is NOT in any other group. Only the files directory can be written on by the www-data user.
So far, so good.
Each time user_1 does drush up or drush dl, the newly downloaded or overridden files in project_A get owner=user_1 and group=user_1. The owner is not a problem, but group=user_1 means that other users in group_A can no longer edit those files.
It would be very sweet if there was a solution to automatically chgrp those added or updated files back to project_A (or a group name specified in a settings file) after drush dl or drush up.
Any idea how to implement this in drush? Or should this be done outside of drush, in custom shell scripts?