From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,eca123924390c62d X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-12-11 11:03:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!newsflash.concordia.ca!not-for-mail From: Sylvain Robitaille Newsgroups: comp.unix.tru64 Subject: Re: group ownership Date: 11 Dec 2002 19:03:13 GMT Organization: Concordia University, Montreal, Canada Message-ID: References: NNTP-Posting-Host: alcor.concordia.ca User-Agent: slrn/0.9.7.4 (OSF1) Xref: archiver1.google.com comp.unix.tru64:9246 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 ----------------------------------------------------------------------