From owner-freebsd-questions Thu Aug 29 18:12:44 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68D0937B400 for ; Thu, 29 Aug 2002 18:12:42 -0700 (PDT) Received: from isilon.com (isilon.com [65.101.129.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA34F43E4A for ; Thu, 29 Aug 2002 18:12:41 -0700 (PDT) (envelope-from tomva@isilon.com) Received: from there (tomva-1.isilon.com [172.16.5.46]) by isilon.com (8.12.2/8.11.1) with SMTP id g7U1CeUb088509 for ; Thu, 29 Aug 2002 18:12:41 -0700 (PDT) (envelope-from tomva@isilon.com) Message-Id: <200208300112.g7U1CeUb088509@isilon.com> X-Authentication-Warning: isilon.com: Host tomva-1.isilon.com [172.16.5.46] claimed to be there Content-Type: text/plain; charset="iso-8859-1" From: Thomas Vaughan Reply-To: tomva@isilon.com Organization: Isilon Systems, Inc. To: questions@freebsd.org Subject: Group owner of new files? Date: Thu, 29 Aug 2002 18:12:01 -0700 X-Mailer: KMail [version 1.3] References: <44k7m9n4lo.fsf@be-well.ilk.org> <3.0.5.32.20020829200154.020e3b90@mail.sage-one.net> In-Reply-To: <3.0.5.32.20020829200154.020e3b90@mail.sage-one.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hey all- Random question about group ownership of new files. Suppose I have a directory /pub with ownership root + wheel, world-writeable. If I log in as user foobar, group foobar, and touch a file in /pub, I see (FreeBSD 5) hostname$ ls -l total 0 -rw-r--r-- 1 foobar wheel 0 Aug 29 14:51 foo But under Solaris and Linux I see hostname$ ls -l total 0 -rw-r--r-- 1 foobar foobar 0 Aug 29 14:51 foo So who is "correct"? It appears that in FreeBSD, group ownership is determined by the directory, rather than the user that created the file. Is that expected behavior? -Thomas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message