loginid vs. uid.
Ben White
white at leadsv.UUCP
Fri Jul 20 02:39:31 AEST 1990
In article <9900 at crdgw1.crd.ge.com>, volpe at underdog.crd.ge.com (Christopher R Volpe) writes:
> What exactly does su have to do (when given the "-" option) to *completely*
> change your identity so that applications like mail think you are the
> person you su'd to rather than the person you su'd from? ...
>
> ... mail still thought I was the person I logged in under.
> Does mail use the utmp file as well? I tried changing enironment
> variables such as HOME and LOGNAME, but they had no effect.
What version of UNIX are you running, and on what machine?
I have run a similar setruid/seteuid program on SunOS (4.0.3),
and mail seems operate properly with the "new" userid. Likewise for
just about everything else I've tried, except of course, "who", which
uses the utmp file, as you pointed out.
Ben White
More information about the Comp.unix.questions
mailing list