User forums > Using Code::Blocks
Help Running/Debugging "root" programs
michelinok:
Hi there!
I'm new to C and codeblocks, but i find codeblocks excellent!
I've s "simple" question.... my program needs to be run/debugged as root, but i'm developing as a normal user; is there a way to run/debug as root inside codeblocks? (something like "when run/debug" ask for root password and proceed).
Many thanks!
Great job!
Barking_Mad:
Just change the terminal/shell to a root/admin one in the environment options of CB. Its in the general options section.
michelinok:
--- Quote from: Barking_Mad on August 29, 2008, 07:21:13 am ---Just change the terminal/shell to a root/admin one in the environment options of CB. Its in the general options section.
--- End quote ---
Ok, found the 2 entryes:
Shell to run commands in: /bin/sh -c
Terminal to launch console programs: xterm -T %TITLE -e
How should i change those entryes?
(I'm a newbie,sorry for the stupid question!)
Jenna:
--- Quote from: michelinok on August 23, 2008, 10:28:24 am ---Hi there!
I'm new to C and codeblocks, but i find codeblocks excellent!
I've s "simple" question.... my program needs to be run/debugged as root, but i'm developing as a normal user; is there a way to run/debug as root inside codeblocks? (something like "when run/debug" ask for root password and proceed).
Many thanks!
Great job!
--- End quote ---
Afaik there is no option included in C::B.
You can try to start C::B from a console window with "sudo codeblocks" .
dmoore:
maybe you should use a chroot/fakeroot/scratchbox approach...
Navigation
[0] Message Index
[#] Next page
Go to full version