Testing setuid()

S

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
 
W

Walter Roberson

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>
 
C

Clever Monkey

Stu said:
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().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top