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_at_dbf.ddb.de>
rioux_at_ip6480nl.ce.utexas.edu (Tom Rioux)
"Randy M. Hayman" <haymanr_at_icefog.sois.alaska.edu>
Lucien HERCAUD_at_paribas.com
Harald Lundberg <hl_at_tekla.fi>
Ferdinand Moser <fm_at_ivi.ch>
Adrian Ho <adrianho_at_nii.ncb.gov.sg>
Martin Moore <martin_at_jerry.alf.dec.com>
Alasdair MacGregor <amacg_at_radstone.co.uk>
John Minteer <minteerj_at_nighthawk.corp.cubic.com>
William Flett <will_at_dcs.rhbnc.ac.uk>
alan_at_nabeth.cxo.dec.com
Ray Bellis <Ray.Bellis_at_psy.ox.ac.uk>
Jay Shen <jshen_at_emperor.kidsat.ucsd.edu>
Serge Munhoven <munhoven_at_olive.msm.ulg.ac.be>
Hellebo Knut <Knut.Hellebo_at_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_at_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
Received on Thu May 09 1996 - 00:27:05 NZST