From owner-freebsd-hackers Tue Apr 13 13: 9:33 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.its.rpi.edu (mail1.its.rpi.edu [128.113.100.7]) by hub.freebsd.org (Postfix) with ESMTP id 169F114CED for ; Tue, 13 Apr 1999 13:09:28 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail1.its.rpi.edu (8.8.8/8.8.6) with ESMTP id QAA180490; Tue, 13 Apr 1999 16:06:58 -0400 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: drosih@pop1.rpi.edu Message-Id: In-Reply-To: References: Brian Dean's message of "Mon, 12 Apr 1999 11:02:18 EDT" <199904121502.LAA15248@dean.pc.sas.com> Date: Tue, 13 Apr 1999 16:07:00 -0400 To: Dom Mitchell , Brian Dean From: Garance A Drosihn Subject: Re: behaviour of open(foo,O_CREAT) in regards to setting 'group' Cc: freebsd-hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 4:24 PM +0100 4/12/99, Dom Mitchell wrote: >On 12 April 1999, Brian Dean proclaimed: >> For example, if the group of /tmp is wheel, the FreeBSD behaviour >> causes files created there to have the group of wheel, and when the >> files are moved to another (non-local) file system (using 'mv'), an >> error is generated indicating that the operation is not permitted if >> the user is not a member of 'wheel'. The error is harmless in this >> case (because the group of the file should not have been wheel in the >> first place because the user was not a member of wheel), but it is >> annoying. > > Maybe the behaviour should not apply to directories with a sticky bit? > I'm not sure that there is much room for change around this whole > subject area, though. It's been pretty much this way for some 15 years > or more. Teach your users to use "cp" instead of "mv"? It seems to me that the file should not be created as group 'wheel' if the user is not in that group... (that then begs the question of what it *should* be set to, but in any case it does seem odd to me that a user can create a file to have a group that they could not specify on a 'chgrp' command) --- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or drosih@rpi.edu Rensselaer Polytechnic Institute To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message