tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Mark Zander <mark_zander () mercury ! spcc ! com>
To: tru64-unix-managers
Subject: [SUMMARY] Forcing group on file create
Date: Wed, 08 May 1996 21:52:19 +0000	[thread overview]
Message-ID: <96076332421248.tru64-unix-managers.marc@archive.invalid> (raw)

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 <bock@dbf.ddb.de>
rioux@ip6480nl.ce.utexas.edu (Tom Rioux)
"Randy M. Hayman" <haymanr@icefog.sois.alaska.edu>
Lucien HERCAUD@paribas.com
Harald Lundberg <hl@tekla.fi>
Ferdinand Moser <fm@ivi.ch>
Adrian Ho <adrianho@nii.ncb.gov.sg>
Martin Moore <martin@jerry.alf.dec.com>
Alasdair MacGregor <amacg@radstone.co.uk>
John Minteer <minteerj@nighthawk.corp.cubic.com>
William Flett <will@dcs.rhbnc.ac.uk>
alan@nabeth.cxo.dec.com
Ray Bellis <Ray.Bellis@psy.ox.ac.uk>
Jay Shen <jshen@emperor.kidsat.ucsd.edu>
Serge Munhoven <munhoven@olive.msm.ulg.ac.be>
Hellebo Knut <Knut.Hellebo@nho.hydro.com>


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

                 reply	other threads:[~1996-05-08 21:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox