Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: smw@trm.concordia.ca ( Steven Winikoff )
Subject: Re: Clarification of newgrp needed
Date: 1998/06/22	[thread overview]
Message-ID: <6mlt86$91$1@newsflash.concordia.ca> (raw)
In-Reply-To: 01bd9977$4577f7d0$2415989e@wsmain


In <01bd9977$4577f7d0$2415989e@wsmain>
"dave herdman" <dherdman@osil.demon.co.uk> writes:

>That is to say newgrp under dunix DOES NOT change the primary group
>affinity for file creation etc. Interestingly a program written to return
>the result of getgid and getegid  on digital unix says these are group xyz
>once the newgrp has been issued

In other words, newgrp does indeed change your primary group affiliation,
which is what (and all :-) it promises to do.

However, you've also discovered that that's not sufficient to control
the group ownership of newly created files.  In particular, DEC Unix
offers two possibilities for assigning the group of a newly created
file:
       
        - By default, it follows the BSD model of having the file's
          group inherited from that of the directory in which it
          resides.

        - If the "sys_v_mode" attribute is defined in the kernel
          configuration file, then the System V model is used; this
          is what causes files to be owned by the primary group of
          the creating process.

This is what happens when your operating system attempts to be all
things to all people. :-)

     - Steven
________________________________________________________________________
Steven Winikoff                |
Concordia University           |
Montreal, QC, Canada           |    It's a control freak thing -- I
smw@alcor.concordia.ca         |    wouldn't let you understand.
http://alcor.concordia.ca/~smw |



           reply	other threads:[~1998-06-22  4:00 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <01bd9977$4577f7d0$2415989e@wsmain>]
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