tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* [SUMMARY] Forcing group on file create
@ 1996-05-08 21:52 Mark Zander
  0 siblings, 0 replies; only message in thread
From: Mark Zander @ 1996-05-08 21:52 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-05-08 21:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-08 21:52 [SUMMARY] Forcing group on file create Mark Zander

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