How do you configure a collaborative directory for a group?

bash mkdir /shared; chgrp devs /shared chmod 2770 /shared

The setgid bit (2) makes new files inherit the devs group; 770 allows only owner and group.