Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Sylvain Robitaille <syl@alcor.concordia.ca>
Subject: Re: group ownership
Date: 11 Dec 2002 19:03:13 GMT	[thread overview]
Message-ID: <slrnavf2vh.dc4i.syl@alcor.concordia.ca> (raw)
In-Reply-To: at7rj0$hca$1$8300dec7@news.demon.co.uk

AJS wrote:

> If the pwd is in group users, any file I create is also in group
> users, not in my default group.
> This happens on all our Alpha boxes running a mixture of 4.0f upto
> 5.1a

That's right.  I once had a user who reported (and demonstrated) that
under certain circumstances (which I never quite got a good handle on
what those were), he was able to create setgid files belonging to the
group that owns the directory, even if he wasn't a member of that group.

I confirmed this behaviour, at the time, on 4.0e, but was not able to
narrow down what the circumstances leading to it were.  I'm fairly
certain it involved creating a tar containing setgid files on a Linux
machine, then copying it to and untarring it on the DEC machine, but I
wasn't able to duplicate it myself, and my user couldn't always make it
happen the same way.  I've not tested on more recent versions of the OS.

Ever since, on all our systems, /tmp (see also /var/tmp, among others),
which used to be owned by group "system" is now owned by group "nobody".
I recommend others do the same.

> When I do the same on some linux boxes, I get the behaviour I expect
> ie the new file has group ownership of my default group.

Not every OS deals with group ownership of new files in the same way.
I'm fairly certain (but you want to check me on this) that if you set
the setgid bit on the directory in Linux, it will exhibit to the same
behaviour as on your DEC system.

I realize this doesn't help explain the behaviour, but I hope it at
least helps you work with it...

-- 
----------------------------------------------------------------------
Sylvain Robitaille                              syl@alcor.concordia.ca
 
Systems analyst                                   Concordia University
Instructional & Information Technology        Montreal, Quebec, Canada
----------------------------------------------------------------------


  reply	other threads:[~2002-12-11 19:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 17:09 group ownership AJS
2002-12-11 19:03 ` Sylvain Robitaille [this message]
2002-12-13 18:05 ` Ann Majeske
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox