From owner-freebsd-questions Sat Jul 6 07:36:03 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA07417 for questions-outgoing; Sat, 6 Jul 1996 07:36:03 -0700 (PDT) Received: from freebsd.gaffaneys.com ([134.129.252.26]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA07359 for ; Sat, 6 Jul 1996 07:35:56 -0700 (PDT) Received: (from zach@localhost) by freebsd.gaffaneys.com (8.6.12/8.6.12) id JAA05026; Sat, 6 Jul 1996 09:36:18 -0500 To: freebsd-questions@FreeBSD.ORG Subject: What's up with ownership? From: Zach Heilig Date: 06 Jul 1996 09:36:17 -0500 Message-ID: <87n31da1pa.fsf@freebsd.gaffaneys.com> Lines: 19 X-Mailer: Gnus v5.2.32/Emacs 19.31 Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Is there any reason why files I create in /tmp (group owned by bin) are also group owned by bin? I only ask because I get the annoying message: $ mv /tmp/somefile ~ mv: ./somefile: set owner/group: Operation not permitted It seems like a security risk to be able to create a file in a random world writable directory, and have it created with a gid other than one I belong to. I remember the old unix behavior when the directory had to have the setgid bit on for files/directories created in it be have the same gid as the directory. Are files created in a directory supposed to have the same gid as the directory (when the directory doesn't have the setgid bit on), or does FreeBSD have a bug? -- Zach Heilig (zach@blizzard.gaffaneys.com) Support bacteria -- it's the only culture some people have! ALL unsolicited >commercial< email is subject to a $100 proof-reading fee.