Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 1997 08:51:22 -0800
From:      David Greenman <dg@root.com>
To:        Malcolm G Boff <Malcolm_Boff@compuserve.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Behaviour of 'su' 
Message-ID:  <199712211651.IAA22741@implode.root.com>
In-Reply-To: Your message of "Sun, 21 Dec 1997 10:26:45 EST." <199712211027_MC2-2CB5-7C4A@compuserve.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712211651.IAA22741>