|running gdb as root without running eclipse as root [message #187264]
||Wed, 07 March 2007 05:35
Originally posted by: lambert_anne.club.lemonde.fr|
I am developing a small program that uses the libpcap library. For the
program to work I need to start it as root. By using setuid I managed to
have the program working when using the Run perspective but how do I get
the same with the debugger??
I tried adding an alias: gdb sudo gdb but when started with eclipse I am
still the owner of the process... If I try to start gdb outside of
Eclipse, no problem, owner is root.
Thanks for any help
|Re: running gdb as root without running eclipse as root [message #192881 is a reply to message #192790]
||Fri, 08 June 2007 04:16
Originally posted by: J.Kilner.surrey.ac.uk|
On Thu, 2007-06-07 at 10:07 +0300, Hasan Ceylan wrote:
> Anne Lambert wrote:
> > Not a silly question at all... I tried so many different things in the
> > last few days, that I did not check that! So yes with executable
> > permission it does work!!
> > Thanks a lot for your help!
> > Anne
> I need help on this issue as well.
> I get "Error creating session
> sudo: sorry, you must have a tty to run sudo"
> Is there a way I can work this around?
You might need one of the graphical versions of sudo. If you are using
kde try using kdesu , and if you are using gnome try gksu instead of the
Powered by FUDForum
. Page generated in 0.02312 seconds