[Qt-creator] Debugging as super-user

Andre Poenitz andre.poenitz at mathematik.tu-chemnitz.de
Wed Apr 14 20:22:30 CEST 2010


On Tue, Apr 13, 2010 at 09:12:07AM -0700, Bryce Schober wrote:
> Is there a way to get Qt Creator to launch gdb as super-user? Obviously, I
> can start Qt Creator as super-user, but that leaves all the modified source
> and outputs with superuser perms, which screws up normal-user operations
> like svn, etc. I tried several different ways of wrapping gdb, and
> specifying the wrapper in Qt creator's gdb settings, but have had no
> success.

Not sure this can be completed to a 'full solution', but if you make a
copy of your /bin/sh  chmod +s and export SHELL=/path/to/this/shell then
'shell id' within gdb gives you an euid of 0. And then there's
setreuid()...

Andre'



More information about the Qt-creator-old mailing list