From: Ann Majeske <Ann.Majeske@hp.com>
Subject: Re: group ownership
Date: Fri, 13 Dec 2002 13:05:02 -0500 [thread overview]
Message-ID: <3DFA214E.A08A6AD@hp.com> (raw)
In-Reply-To: at7rj0$hca$1$8300dec7@news.demon.co.uk
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.
prev parent reply other threads:[~2002-12-13 18:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-11 17:09 group ownership AJS
2002-12-11 19:03 ` Sylvain Robitaille
2002-12-13 18:05 ` Ann Majeske [this message]
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