[Qt-creator] Debugging as super-user
Bryce Schober
bryce.schober at gmail.com
Thu Apr 15 17:39:43 CEST 2010
Thanks for educating the Linux newbie! So here's what I got to work well
for me.
I added this line to my /etc/sudoers, using visudo:
<user> <machine>= NOPASSWD: /usr/bin/gdb
Then I created this bash script wrapper as /usr/bin/gdb-su:
#!/bin/bash
sudo gdb $@
Finally, I set qt-creator to use gdb-su as its gdb, and presto, happiness!
--
Bryce Schober
On Wed, Apr 14, 2010 at 6:26 PM, Coda Highland <coda at bobandgeorge.com>wrote:
> And for that matter you could use that technique to restrict it to
> your own user, too, so services couldn't get free root via gdb.
>
> /s/ Adam
>
> On Wed, Apr 14, 2010 at 8:25 PM, Coda Highland <coda at bobandgeorge.com>
> wrote:
> > You could always modify /etc/sudoers to allow gdb to be run without a
> password.
> >
> > /s/ Adam
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100415/2b691582/attachment.html
More information about the Qt-creator-old
mailing list