From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9dac5d8de8abb101,start X-Google-Attributes: gidfee84,public From: smw@trm.concordia.ca ( Steven Winikoff ) Subject: Re: Clarification of newgrp needed Date: 1998/06/22 Message-ID: <6mlt86$91$1@newsflash.concordia.ca>#1/1 X-Deja-AN: 364997405 References: <01bd9977$4577f7d0$2415989e@wsmain> Organization: Concordia University, Montreal, Canada NNTP-Posting-User: root Newsgroups: comp.unix.osf.osf1 In <01bd9977$4577f7d0$2415989e@wsmain> "dave herdman" 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 |