470,815 Members | 1,320 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Testing setuid()

Stu
Is there anyway to tell if a setuid() call has been made to some other
user?

If so, can somebody provide me with some sample code

Thanks in advance to all that answer

Apr 12 '07 #1
2 2365
In article <11*********************@o5g2000hsb.googlegroups.c om>,
Stu <be********@hotmail.comwrote:
>Is there anyway to tell if a setuid() call has been made to some other
user?
Not in standard C -- setuid() is not part of the standard C library.

You will need to ask in whatever newsgroup is appropriate for
the operating system extension that is providing you with setuid().

<OT>
No, not portably even on all POSIX systems. I don't know if
later POSIX added such a facility, and operating systems such as
Linux might have added their own warts.
</OT>
--
I was very young in those days, but I was also rather dim.
-- Christopher Priest
Apr 12 '07 #2
Stu wrote:
Is there anyway to tell if a setuid() call has been made to some other
user?

If so, can somebody provide me with some sample code

Thanks in advance to all that answer
Best take this to a newsgroup that deals with POSIX or systems that have
the notion of setuid(). Standard C does not know about setuid().
Apr 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ben Eisenberg | last post: by
reply views Thread by Dave Harrison | last post: by
1 post views Thread by Domenico Andreoli | last post: by
3 posts views Thread by Michele Simionato | last post: by
3 posts views Thread by pasear | last post: by
1 post views Thread by vertigo | last post: by
3 posts views Thread by Tiago Simões Batista | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.