From owner-freebsd-hackers Wed Apr 21 9:30:30 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from thorin.hway.ru (thorin.hway.ru [195.170.38.130]) by hub.freebsd.org (Postfix) with ESMTP id E999514C27 for ; Wed, 21 Apr 1999 09:30:18 -0700 (PDT) (envelope-from flash@intech.hway.ru) Received: from balin.intech.hway.ru (balin.intech.hway.ru [192.168.1.25]) by thorin.hway.ru (8.9.1/8.9.1) with ESMTP id UAA10883; Wed, 21 Apr 1999 20:26:34 +0400 (MSD) Received: from localhost (flash@localhost) by balin.intech.hway.ru (8.8.8/8.8.8) with ESMTP id UAA09268; Wed, 21 Apr 1999 20:26:28 +0400 (MSD) (envelope-from flash@balin.intech.hway.ru) Date: Wed, 21 Apr 1999 20:26:28 +0400 (MSD) From: "Alexander V. Tischenko" To: Garance A Drosihn Cc: Dom Mitchell , Brian Dean , freebsd-hackers@FreeBSD.ORG Subject: Re: behaviour of open(foo,O_CREAT) in regards to setting 'group' In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, may be i am a bit late with the reply, just got to my mail %), but my two cents: 1. True, file is created under a group that he can't _set_ with chgrp. 2. But: He can always _change_ the group of this file to _any_ that he is member of, while he is the owner. On Tue, 13 Apr 1999, Garance A Drosihn wrote: > Date: Tue, 13 Apr 1999 16:07:00 -0400 > From: Garance A Drosihn > To: Dom Mitchell , Brian Dean > Cc: freebsd-hackers@FreeBSD.ORG > Subject: Re: behaviour of open(foo,O_CREAT) in regards to setting 'group' > > 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 > Alexander V. Tischenko ------------------------------------------------------------------------------ Integrated Network Technologies | Tel: +7 095 978-47-37 7, Miusskaya sq., Moscow, 125047 Russia | Fax: +7 095 978-47-37 Internet: flash@hway.ru | NIC: AT55-RIPE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message