[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to identify the superuser in C

On Wed, 11 Dec 2002 14:13:15 -0500,
Matt Zimmerman <mdz@debian.org> wrote:
> On Wed, Dec 11, 2002 at 11:07:11AM +0900, Oohara Yuuma wrote:
> > The problem is that there is fakeroot. getuid() == 0 or
> > geteuid() == 0 is not enough.  PAM is an overkill.
> > I think seteuid(0) == 0 is the best approach.
> fakeroot (or any other dynamic linker tricks) will not work on set[ug]id
> programs.  libc can be trusted here.
Is this Linux specific?  (There can be a Hurd port in the sarge release).

Oohara Yuuma <oohara@libra.interq.or.jp>
Debian developer
PGP key (key ID F464A695) http://www.interq.or.jp/libra/oohara/pub-key.txt
Key fingerprint = 6142 8D07 9C5B 159B C170  1F4A 40D6 F42E F464 A695

smile to answer
--- Treasure, "Radiant Silvergun", attitude #3 for SBS-130

Reply to: