From owner-freebsd-questions Sun Dec 21 08:49:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA11635 for questions-outgoing; Sun, 21 Dec 1997 08:49:46 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA11629 for ; Sun, 21 Dec 1997 08:49:41 -0800 (PST) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id IAA22741; Sun, 21 Dec 1997 08:51:22 -0800 (PST) Message-Id: <199712211651.IAA22741@implode.root.com> To: Malcolm G Boff cc: "freebsd-questions@freebsd.org" Subject: Re: Behaviour of 'su' In-reply-to: Your message of "Sun, 21 Dec 1997 10:26:45 EST." <199712211027_MC2-2CB5-7C4A@compuserve.com> From: David Greenman Reply-To: dg@root.com Date: Sun, 21 Dec 1997 08:51:22 -0800 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >As I normally work on an AIX system I was somewhat surprised when testing >on FreeBSD on my PC (version 2.2.2) the behaviour of 'su' and would like >some feedback. > >There is a user 'abc' (uid 1000) with a group of 20 (gid). As root I 'su' >to >the user ('su - abc') and then 'touch /tmp/test' and ls -al shows the file >permissions to be 'rw-r--r-- abc wheel' whereas I would have expected >'rw-r--r-- abc staff'. Is this correct and if so why ? > >Please respond to my email address as I am not in the forum. It is correct. In BSD, the gid of the file is inherited from the directory that the file is created in. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project