From nobody@FreeBSD.ORG  Fri Jul 14 00:11:44 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 5002637C5B3; Fri, 14 Jul 2000 00:11:44 -0700 (PDT)
Message-Id: <20000714071144.5002637C5B3@hub.freebsd.org>
Date: Fri, 14 Jul 2000 00:11:44 -0700 (PDT)
From: robert-spam99@nisse.dk
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: wrong group when creating files
X-Send-Pr-Version: www-1.0

>Number:         19910
>Category:       kern
>Synopsis:       wrong group when creating files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 14 00:20:01 PDT 2000
>Closed-Date:    Fri Jul 14 08:41:51 PDT 2000
>Last-Modified:  Fri Jul 14 08:48:09 PDT 2000
>Originator:     Robert Martin-Legene
>Release:        4.0-RELEASE
>Organization:
>Environment:
FreeBSD jenslyn.nisse.dk 4.0-RELEASE FreeBSD 4.0-RELEASE #22: Wed Jul 12 14:22:05 ART 2000     r@jenslyn.nisse.dk:/usr/src/sys/compile/JENSLYN  i386

>Description:
Upon creating a file, it will be created in the same group as the
directory in which it is being created, even if you are not a member
of this group. I removed my sticky bit on /tmp and tested it there.

I suppose the kernel thinks that 02000 is on the directory.

r@jenslyn(1) ~ $ ls -ld / /tmp /tmp/group-test
ls: /tmp/group-test: No such file or directory
drwxr-xr-x  18 root  wheel   512 Jul 12 14:22 /
drwxrwxrwx   9 root  uucp   1024 Jul 14 03:54 /tmp
r@jenslyn(1) ~ $ touch /tmp/group-test
r@jenslyn(0) ~ $ ls -ld / /tmp /tmp/group-test
drwxr-xr-x  18 root  wheel   512 Jul 12 14:22 /
drwxrwxrwx   9 root  uucp   1024 Jul 14 03:54 /tmp
-rw-r--r--   1 r     uucp      0 Jul 14 03:54 /tmp/group-test
r@jenslyn(0) ~ $ id
uid=1000(r) gid=1000(r) groups=1000(r), 0(wheel), 53(bind), 1005(familia), 1500(users)
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Fri Jul 14 08:41:51 PDT 2000 
State-Changed-Why:  
FreeBSD implements one of two permissible behaviors defined by the 
POSIX 1003.1 standard.  This choice was by intention, matches 
historic BSD behavior, and is highly unlikely to be revisited. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19910 
>Unformatted:
