Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 20:26:28 +0400 (MSD)
From:      "Alexander V. Tischenko" <flash@intech.hway.ru>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        Dom Mitchell <Dom.Mitchell@palmerharvey.co.uk>, Brian Dean <brdean@unx.sas.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: behaviour of open(foo,O_CREAT) in regards to setting 'group'
Message-ID:  <Pine.BSF.4.05.9904212022420.8975-100000@balin.intech.hway.ru>
In-Reply-To: <v04011700b33953ec426e@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <drosih@rpi.edu>
> To: Dom Mitchell <Dom.Mitchell@palmerharvey.co.uk>,
     Brian Dean <brdean@unx.sas.com>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9904212022420.8975-100000>