From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,eca123924390c62d X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-12-13 10:07:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Message-ID: <3DFA214E.A08A6AD@hp.com> From: Ann Majeske X-Mailer: Mozilla 4.79 [en] (X11; U; OSF1 X5.1 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: group ownership References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 13 Dec 2002 13:05:02 -0500 NNTP-Posting-Host: 16.140.128.94 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1039802815 16.140.128.94 (Fri, 13 Dec 2002 10:06:55 PST) NNTP-Posting-Date: Fri, 13 Dec 2002 10:06:55 PST Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:9263 >From the open/creat(2) man page: File Status Flags The file status flags, which specify file open processing, are as follows: O_CREAT If the file exists, this flag has no effect, except as described under the O_EXCL flag. If the file does not exist, a regular file is created with the following characteristics: + The owner ID of the file is set to the effective user ID of the process. + The group ID of the file is set to the group ID of its parent directory. However, when the vfs subsystem attribute sys_v_mode is set to 1, the group ID of the file is set either to the group ID of the pro- cess or, if the S_ISGID bit of the parent directory is set, to the group ID of the parent directory. If the group ID of the new file does not match the process's effective group ID or one of its supplementary group IDs, the S_ISGID bit of the new file is cleared.