ELM problem (for the curious).
Paul Hilchey
hilchey at ucs.ubc.ca
Sat Mar 2 08:28:20 AEST 1991
chouinar at centrcn.umontreal.ca (Luc Chouinard) writes:
> Setgid progams . . . can change the current egid to the current gid
> but they cannot perform the inverse (i.e. egid=gid of the program).
This works fine if you use setgid instead of setegid. Eg:
egid = getegid();
printf("%d\n",getegid());
setgid(getgid());
printf("%d\n",getegid());
setgid(egid);
printf("%d\n",getegid());
produces the expected result with Irix 3.3.1. It doesn't work with
SunOS 4.1.1, though.
A related question: Elm changes the effective uid/gid back to the real
ones before calling the access function, though on all the systems I've
checked, access is done w.r.t. the real uid/gid. Are there any systems
on which that isn't true?
____
Paul Hilchey
University Computing Services
The University of British Columbia
More information about the Comp.sys.sgi
mailing list