Re: A few questions...
- From: "Ben Kaduk" <minimarmot@xxxxxxxxx>
- Date: Tue, 24 Jul 2007 00:37:53 -0500
On 7/23/07, Darren Pilgrim <freebsd@xxxxxxxxxxxx> wrote:
Daniel Molina Wegener wrote:
> Hello,
>
> I need information about few things, I hope someone can help
> me and thanks in advance.
>
> a) Is there any function or variable that tells me which is the
> root user UID in the system, or root always have 0 and it's
> an "elegant" option to compare the variables or structure
> members against zero.
Root is always UID 0. Checking UID == 0 is the common practice for
determining if the effective UID has root priveleges.
But should it be common practice? What of suser(9) and priv(9)?
-Ben Kaduk
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: A few questions...
- From: Brooks Davis
- Re: A few questions...
- References:
- A few questions...
- From: Daniel Molina Wegener
- Re: A few questions...
- From: Darren Pilgrim
- A few questions...
- Prev by Date: Re: alias netmask bug?
- Next by Date: Re: alias netmask bug?
- Previous by thread: Re: A few questions...
- Next by thread: Re: A few questions...
- Index(es):
Relevant Pages
|
|