Real and effective uid in setuid executable
Hello,
I have a setuid executable which is written in C. Is
there a system call with which I can get the uid of
the calling user if the executable is setuid root?
If the executable is setuid to a non-root user,
getuid() and geteuid() return the real and effective
userid as expected. If setuid root, both return "0".
Is there a good reason for this behaviour? A way to
circumvent it? Or a very good reason not to try?
Thanks and regards,
Sven
_________________________________________________________
Flyger tiden iväg? Fånga dagen med Yahoo! Mails inbyggda
kalender. Dessutom 250 MB gratis, virusscanning och antispam. Få den på: http://se.mail.yahoo.com
Reply to: