From owner-freebsd-bugs Fri Jul 14 0:20: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5819037C6A5 for ; Fri, 14 Jul 2000 00:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA58891; Fri, 14 Jul 2000 00:20:01 -0700 (PDT) (envelope-from gnats@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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/19910: wrong group when creating files Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19910 >Category: kern >Synopsis: wrong group when creating files >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 14 00:20:01 PDT 2000 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message