$ umask 002 # allow group write; everyone must do this
$ chgrp G . # set directory group to G
$ chmod g+s . # files created in directory will be in group G
$ umask 002 # allow group write; everyone must do this
$ chgrp G . # set directory group to G
$ chmod g+s . # files created in directory will be in group G