* Re: Clarification of newgrp needed
[not found] <01bd9977$4577f7d0$2415989e@wsmain>
@ 1998-06-22 4:00 ` Steven Winikoff
0 siblings, 0 replies; only message in thread
From: Steven Winikoff @ 1998-06-22 4:00 UTC (permalink / raw)
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 |
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-06-22 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <01bd9977$4577f7d0$2415989e@wsmain>
1998-06-22 4:00 ` Clarification of newgrp needed Steven Winikoff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox