Bug 19910

Summary: wrong group when creating files
Product: Base System Reporter: robert-spam99 <robert-spam99>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-RELEASE   
Hardware: Any   
OS: Any   

Description robert-spam99 2000-07-14 08:20:01 UTC
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)
Comment 1 Garrett Wollman freebsd_committer freebsd_triage 2000-07-14 16:41:51 UTC
State Changed
From-To: open->closed

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.