Re: High UID support for Linux

H. Peter Anvin (hpa@transmeta.com)
Wed, 2 Dec 1998 10:09:24 -0800 (PST)


> 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.

-hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/