Bug 60165 - debug root priv app
Summary: debug root priv app
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: git master
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 58152 83891 201768 289044 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-21 07:11 UTC by Jon Smirl
Modified: 2015-08-05 17:49 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Smirl 2003-06-21 07:11:12 UTC
Version:           gideon CVS - 6/21/03 (using KDE KDE 3.1)
Installed from:    RedHat RPMs

I am running Gideon as a normal user. I want to debug an app that needs root priv (opens the framebuffer). I set SETUID on both gdb and my app to force root. Gideon spawns the gdb as root, but no matter what I do my app is always spawned under my normal UID. I even set the owner of my app to root and it still spawns as my UID.

I can make this work by running Gideon as root but I'd rather not do that. Also, if I run the SETUID gdb and my app from the command line under my normal UID, the app runs as root.

1) Is there a solution for this?
2) Could there be a nice little checkbox that says run app as root?
Comment 1 Thiago Macieira 2003-06-21 13:56:25 UTC
I might be wrong, but I think this is a limitation in gdb. Try doing that from GDB 
outside Gideon and please report back. 
 
Comment 2 Jon Smirl 2003-11-06 23:06:35 UTC
This bug can have severe side effects. See http://bugs.kde.org/show_bug.cgi?id=60758
Using kdevelop editors while running as root is a really good way to screw up your source control system.
Comment 3 Jon Smirl 2003-12-17 19:50:25 UTC
58152 is a dup of this
Comment 4 Jens Dagerbo 2003-12-17 20:12:24 UTC
*** Bug 58152 has been marked as a duplicate of this bug. ***
Comment 5 Jens Dagerbo 2003-12-17 20:14:02 UTC
Technically, this is a wish rather than a bug, but I agree it should be fixed and really is a missing piece of functionality.
Comment 6 Andreas Pakulat 2008-06-29 20:17:06 UTC
*** Bug 83891 has been marked as a duplicate of this bug. ***
Comment 7 Hamish Rodda 2008-12-17 10:41:13 UTC
SVN commit 897975 by rodda:

Support running programs as other users, using kdesudo.

Reads the entry "Run As User" in the project config file, which currently has no gui.

For the bugreport, the only thing missing (apart from the gui to configure) is to make gdb run the process as the given user - maybe gdb itself has to be run as that user?

CCBUG:60165

 M  +10 -1     interfaces/irun.cpp  
 M  +9 -0      interfaces/irun.h  
 M  +11 -8     plugins/execute/executeplugin.cpp  
 M  +1 -0      shell/runcontroller.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=897975
Comment 8 Olivier.jg 2010-12-19 06:52:44 UTC
*** Bug 201768 has been marked as a duplicate of this bug. ***
Comment 9 Niko Sams 2011-12-30 19:01:50 UTC
*** Bug 289044 has been marked as a duplicate of this bug. ***