kern/177087: Wrong gid on file creations

Tuc tuc at t-b-o-h.net
Mon Mar 18 20:50:00 UTC 2013


>Number:         177087
>Category:       kern
>Synopsis:       Wrong gid on file creations
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 18 20:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tuc
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
TBOH
>Environment:
System: FreeBSD e-nfs-01.ame.admarketplace.net 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64


>Description:
	Fresh install, create new user, touch /tmp/foo, see wrong gid
>How-To-Repeat:
$ cd /tmp
$ touch foo
$ ls -l foo
-rw-r--r--  1 tuc  wheel  0 Mar 18 20:36 foo
$ grep tuc /etc/passwd
tuc:*:1001:1001:Tuc:/home/tuc:/bin/sh
$ id
uid=1001(tuc) gid=1001(tuc) groups=1001(tuc),0(wheel)
$ cd /var/tmp
$ touch foo
$ ls -l foo
-rw-r--r--  1 tuc  wheel  0 Mar 18 20:37 foo

root at e-nfs-01:/root # mkdir /foo
root at e-nfs-01:/root # chmod 777 /foo
root at e-nfs-01:/root # exit
logout
$ cd /foo
$ touch foo
$ ls -l foo
-rw-r--r--  1 tuc  wheel  0 Mar 18 20:39 foo

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list