<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi, Ido<br></span></div><div><span><br></span></div><div><span>suid root != everyone can use it</span></div><div><br><span></span></div><div><span>mkdir -m700 ~/for_setuid</span></div><div><span>Then copy gdb here and make it setuid root</span></div><div><br><span></span></div><div><span>Valery<br></span></div><div><br><span></span></div><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> ik &lt;idokan@gmail.com&gt;<br> <b><span
 style="font-weight: bold;">To:</span></b> linux-il &lt;linux-il@cs.huji.ac.il&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, February 27, 2012 12:33 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> elevate gdb privileges<br> </font> </div> <br>
Hello,<br><br>I have a program that I write that uses user-space libraries that talk<br>with kernel space, and I use an IDE for the development and debugging.<br><br>The program requires to run as super user, but I do not want to run<br>the whole IDE itself as super user, only gdb for this specific<br>project, but the IDE<br>does not allow me to do something like: /usr/bin/kdesu /usr/bin/gdb ...<br>I also do not wish to provide suid to root, and allow every one to use<br>gdb as root.<br><br>Beside executing gdb myself with sudo, how would you recommend me to<br>elevate user privileges for gdb on such case ?<br><br>Thanks,<br>Ido<br><br>_______________________________________________<br>Linux-il mailing list<br><a ymailto="mailto:Linux-il@cs.huji.ac.il" href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il<br><br><br> </div> </div> </blockquote></div>   </div></body></html>