Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Debugging as a normal user a program running as root
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Debugging as a normal user a program running as root (Read 5447 times)
plegal
Single posting newcomer
Posts: 4
Debugging as a normal user a program running as root
«
on:
January 09, 2008, 05:12:42 pm »
Hi
I've to debug a program that run under root identity as a normal user.
Is it a way to do that ?
I've successfully write a little script that change de owner/group (root.root) of the target then put the "s" bit of the target and the executable can be use for a normal user.
But I can't debug it...
Any suggestion ?
Thx
Philippe
Logged
dje
Lives here!
Posts: 682
Re: Debugging as a normal user a program running as root
«
Reply #1 on:
January 09, 2008, 05:44:12 pm »
Hi !
Did you try a virtual machine ?
Dje
Logged
plegal
Single posting newcomer
Posts: 4
Re: Debugging as a normal user a program running as root
«
Reply #2 on:
January 11, 2008, 09:01:45 pm »
Hi,
Thanks for the answer
Can u explain a little bit more how I can use a virtual machine to solve my problem?
My problem is to dynamic change the owner of the process to debug from normal user to root...
Philippe
Logged
dje
Lives here!
Posts: 682
Re: Debugging as a normal user a program running as root
«
Reply #3 on:
January 11, 2008, 11:04:58 pm »
Sorry, I misunderstood what you wrote.
What I said can't help you.
Sorry :oops:
Logged
alchemist
Multiple posting newcomer
Posts: 38
Re: Debugging as a normal user a program running as root
«
Reply #4 on:
January 12, 2008, 05:15:27 pm »
Hello,
I think it will be impossible, for security reasons. If you can debug a root application, you could get root privileges and do dangerous things...
Logged
Kind Regards,
Xavier Miller.
http://xaviermiller.be
plegal
Single posting newcomer
Posts: 4
Re: Debugging as a normal user a program running as root
«
Reply #5 on:
January 12, 2008, 09:40:18 pm »
Thanks for the replies
I also think that I've to run code:blocks under root identity to solve my problem.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Debugging as a normal user a program running as root