I am new to programming on Linux, I just searched for Setuid() and found that it sets the effective userid of my program to the userid I specify. So can I just call setuid() in my program when I need superuser privileges and have those privileges. To what part of my program are those privileges confined to?<br>
<br>Thanks<br>Shivaprasad<br><br><div class="gmail_quote">On Wed, Jun 25, 2008 at 11:23 AM, James Cameron <<a href="mailto:quozl@us.netrek.org">quozl@us.netrek.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So it is root UID you need for a user-space program, not a kernel<br>
driver, I see. Have you considered setuid?<br>
<font color="#888888"><br>
--<br>
James Cameron mailto:<a href="mailto:quozl@us.netrek.org">quozl@us.netrek.org</a> <a href="http://quozl.netrek.org/" target="_blank">http://quozl.netrek.org/</a><br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</font></blockquote></div><br>