Re: High UID support for Linux

Michael H. Warfield (
Wed, 2 Dec 1998 22:14:05 -0500 (EST)

H. Peter Anvin enscribed thusly:
> > I've been following this thread a bit as I'm interested in the problem.

> > Just a thought, what about using the utmp entry (if the user has a
> > controlling tty mind you) for getting the userid, then do getpwnam() to pull
> > the passwd data on them?

> > Without a controlling tty, it of course wouldn't work, and in an su
> > situation it would return the real user not the user su'd to... But this
> > might be a better method then using environment vars.

> No. $HOME is the proper method.

But... Even assuming (remember how that is spelled) that $HOME
is set properly... That returns the home directory NOT the user id. That's
fine when you WANT the home directory but less than ideal for other purposes.

BTW... We use to play some games with some speech recognition
daemons where we would "modify" the $HOME environment to fake out the
XAuthority for connecting to the XServer... Ugly - yes... Worked -

> -hpa


 Michael H. Warfield    |  (770) 985-6132   |
  (The Mad Wizard)      |  (770) 925-8248   |
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at