From owner-freebsd-bugs Fri Aug 29 08:40:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA10384 for bugs-outgoing; Fri, 29 Aug 1997 08:40:04 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA10374; Fri, 29 Aug 1997 08:40:02 -0700 (PDT) Resent-Date: Fri, 29 Aug 1997 08:40:02 -0700 (PDT) Resent-Message-Id: <199708291540.IAA10374@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, dbx@atmos.washington.edu Received: from cargpc5.atmos.washington.edu (cargpc5.atmos.washington.edu [128.95.176.98]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA09963 for ; Fri, 29 Aug 1997 08:30:16 -0700 (PDT) Received: by cargpc5.atmos.washington.edu (8.8.5/UW-NDC Revision: 2.30v8.8) id IAA04229; Fri, 29 Aug 1997 08:32:49 -0700 (PDT) Message-Id: <199708291532.IAA04229@cargpc5.atmos.washington.edu> Date: Fri, 29 Aug 1997 08:32:49 -0700 (PDT) From: dbx@atmos.washington.edu Reply-To: dbx@atmos.washington.edu To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/4418: Sticky directories change file group Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4418 >Category: kern >Synopsis: "Sticky" directories change group ownership of files >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 29 08:40:01 PDT 1997 >Last-Modified: >Originator: "Doug Burks" >Organization: Dept of Atmospheric Sciences, Univ of Washington >Release: FreeBSD 2.2.1-RELEASE i386 >Environment: unimportant >Description: I hope I'm not out in left field on this, as I don't have a POSIX manual, but ... If a directory has a sticky bit set, it will change the group ownership of any file created in that directory to the group owning the directory. If my understanding is correct, the group ownership should only be changed if the set-group-id bit is set on the directory permissions, not the sticky bit. Note that the user ownership is correct, and that the set-group-id bit works as it should. If I am out in left field on this, I apologize for bothering you! >How-To-Repeat: >From your favorite command shell -- $ mkdir stick $ chmod 1777 stick $ su - # chown root.bin stick # exit $ cd stick $ touch file $ ls -l and you will see that "file" is owned by the group "bin", not the user's group. >Fix: Unknown, though I suspect a small little typo somewhere. :) This problem is easy to work-around, though a bit annoying. >Audit-Trail: >Unformatted: