Let's suppose that you want a directory called 'develdir' to be available for a group of 2 users called 'username1' and 'username2'. Those two users will be able to put files in the directory as well as read and edit all the files. Here is how to do this as root or using 'sudo su':
mkdir develdir groupadd devel addgroup username1 username2 devel chgrp devel develdir chmod g+s develdir umask 002 develdir
If you need to keep permissions on a copied file, use 'install -m 666' or 'cp -a' to copy files.