Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 1997 08:32:49 -0700 (PDT)
From:      dbx@atmos.washington.edu
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/4418: Sticky directories change file group
Message-ID:  <199708291532.IAA04229@cargpc5.atmos.washington.edu>
Resent-Message-ID: <199708291540.IAA10374@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708291532.IAA04229>