From owner-freebsd-security  Sat Mar 23 23:54:30 2002
Delivered-To: freebsd-security@freebsd.org
Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44])
	by hub.freebsd.org (Postfix) with ESMTP id 0220637B41A
	for <security@FreeBSD.ORG>; Sat, 23 Mar 2002 23:54:28 -0800 (PST)
Received: (from daemon@localhost)
	by point.osg.gov.bc.ca (8.8.7/8.8.8) id XAA27634;
	Sat, 23 Mar 2002 23:53:54 -0800
Received: from passer.osg.gov.bc.ca(142.32.110.29)
 via SMTP by point.osg.gov.bc.ca, id smtpda27632; Sat Mar 23 23:53:43 2002
Received: (from uucp@localhost)
	by passer.osg.gov.bc.ca (8.11.6/8.9.1) id g2O7rYK29945;
	Sat, 23 Mar 2002 23:53:34 -0800 (PST)
Received: from UNKNOWN(10.1.2.1), claiming to be "cwsys.cwsent.com"
 via SMTP by passer9.cwsent.com, id smtpds29943; Sat Mar 23 23:53:24 2002
Received: (from uucp@localhost)
	by cwsys.cwsent.com (8.11.6/8.9.1) id g2O7rJL28515;
	Sat, 23 Mar 2002 23:53:19 -0800 (PST)
Message-Id: <200203240753.g2O7rJL28515@cwsys.cwsent.com>
Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys"
 via SMTP by localhost.cwsent.com, id smtpds28504; Sat Mar 23 23:52:28 2002
X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4
Reply-To: Cy Schubert - CITS Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
From: Cy Schubert - CITS Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
X-Sender: schubert
To: Alex Popa <razor-bsd-security@ldc.ro>
Cc: security@FreeBSD.ORG
Subject: Re: strange behaviour on /tmp 
In-Reply-To: Message from Alex Popa <razor-bsd-security@ldc.ro> 
   of "Sat, 23 Mar 2002 21:42:27 +0200." <20020323214227.A37349@ldc.ro> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 23 Mar 2002 23:52:28 -0800
Sender: owner-freebsd-security@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-security.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-security>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-security>
X-Loop: FreeBSD.org

In message <20020323214227.A37349@ldc.ro>, Alex Popa writes:
> I have /tmp mode 1777, and mounted like this in fstab:
> "/dev/something		tmp            ufs     rw,nosuid,nodev 2 2"
> 
> The thing I am noticing is that all files created under /tmp get
> to be created as group wheel, no matter of the permissions of the
> directory they are created in, or the user that creates them.
> 
> Is this expected behaviour?

Yes.  It is BSD behavior to have files created within a directory to 
have the same GID as the directory.  SYSV uses the EGID of the process. 
 A US Gov't FIPS standard stated at one time that the BSD standard was 
to be implemented, which is why SYSV invented the setgid bit for 
directories (at the time, conforming to the FIPS standards = sales to 
the US Federal Gov't).  The FIPS standard I speak of has been revoked.


Regards,                         Phone:  (250)387-8437
Cy Schubert                        Fax:  (250)387-5766
Team Leader, Sun/Alpha Team      Email:  Cy.Schubert@osg.gov.bc.ca
Open Systems Group, CITS
Ministry of Management Services
Province of BC            
                    FreeBSD UNIX:  cy@FreeBSD.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message