From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076332421248.tru64-unix-managers.marc@archive.invalid> From: Mark Zander Date: Wed, 08 May 1996 21:52:19 +0000 To: tru64-unix-managers Subject: [SUMMARY] Forcing group on file create X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076332421248 Thanks to all who answered. The answer to my original question is to set the GID bit on the parent directory (chmod g+s) and that files automatically inherit the group of the parent directory. It turns out that I misunderstood the original problem. I needed to have the file permissions set correctly, not necessarily the group. I used umask for this. Thanks to: Juergen Bock rioux@ip6480nl.ce.utexas.edu (Tom Rioux) "Randy M. Hayman" Lucien HERCAUD@paribas.com Harald Lundberg Ferdinand Moser Adrian Ho Martin Moore Alasdair MacGregor John Minteer William Flett alan@nabeth.cxo.dec.com Ray Bellis Jay Shen Serge Munhoven Hellebo Knut My original question was: > We have a situation where we have several users who > belong to multiple primary groups creating files in a > single directory. They all need to access the files, but ^^^^^^ > currently only people from their primary group can get to > them. > > Everyone is also a member of one other group as a > secondary group, so I would like to force all the files > to be owned by that group when they are created. > > Is there a way of doing this automatically (ie. just at > creation without having to do chgrp)? > ---------------------- Mark Zander ==> mark_zander@mercury.spcc.com Operations Manager Shepard Poorman Communications Corporation Indianapolis, Indiana USA Third Stone From The Sun ---------------------- "If you act, as you think, The missing link, Synchronicity." - Sting "Few would have known me if they dared." - Toto "Why is it never light on my lawn, why does it rain and never say good day to the new born?" - Elton John "How can I even try, I can never win?" - John Lennon