Re: A few questions...



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.

b) Can normal users look for system processes or kernel threads?

Yes, depending on the value of the security.bsd.see_other_uids sysctl. If security.bsd.see_other_uids=0, non-root users can only see their own processes.

c) Can root look for system processes or kernel threads?

Yes, regardless of the value of security.bsd.see_other_uids.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: very strange password problems - followup
    ... And can't run anything that requires root priveleges from KDE, ... they are plain passwords to begin with, ...
    (alt.os.linux.suse)
  • Re: Minimizing the number of "setuid root" daemons
    ... > It seems to me that quite a few daemons use "setuid root" only to open ... As for the daemons themselves, they usually drop root priveleges ... > need to give them "setuid root" capability at all. ...
    (comp.os.linux.security)
  • Re: Solaris home area
    ... potential ssh exploits to gain root access, ... you shouldn't bother running it while possessing root priveleges anyway. ...
    (comp.unix.solaris)
  • Executing root script/s are a different
    ... I have a korn shell menu interface that executes a number of different ... root scripts for uploading,moving and deleting files. ... user who does not have root priveleges. ...
    (comp.unix.shell)