> 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.
Quote:> 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...
--
----------------------------------------------------------------------
Systems analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------