title: Can gdb debug suid root programs?
body: <p>I did a program that call setuid(0) and execve("/bin/bash",NULL,NULL).</p>
  
  <p>Then I did <code>chown root:root a.out &amp;&amp; chmod +s a.out</code></p>
  
  <p>When I execute <code>./a.out</code> I get a root shell. However when I do <code>gdb a.out</code> it starts the process as normal user, and launch a user shell.</p>
  
  <p>So... can I debug a suided root program?</p>