2013年8月31日星期六

linux how to run as root terminal

With codeblocks to run c + + program, but when a login with the general user logins , the program must be run as root , do not want to log in at the same time root, with the general user login How codeblocks , directly compiled to run after the pop-up terminal is root privileges to run ?
------ Solution ---------------------------------------- ----
to perform file execute permission not add about what ?
------ Solution -------------------------------------- ------
setuid
http://blog.csdn.net/oo__yan/article/details/7076889
------ Solution ---------------------------------------- ----
su
or manually enter the sudo command .
------ For reference only -------------------------------------- -
codeblocks you can compile and link , and then open a terminal root privileges to run executable files
------ For reference only ------------ ---------------------------
there is no direct way to use codeblocks compile and run it, do not want to open another terminal
- ---- For reference only ---------------------------------------
not people know ? Seeking help
------ For reference only ------------------------------------ ---
I just want to use codeblocks compile and run the program , in order to debug , if you manually in a terminal with root can not be debugged seeking ways
------ For reference only ----- ----------------------------------
final solution yet ?

没有评论:

发表评论