LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gksu with c++ (https://www.linuxquestions.org/questions/linux-software-2/gksu-with-c-678241/)

Loser 10-22-2008 03:29 AM

gksu with c++
 
Hi...

how can I use gksu command in my qt program to make it run under root user ???

almatic 10-23-2008 05:22 PM

do you want to start your program as root ? or do you want to start another application from within your program as root ?
In the first case, just do 'gksu yourprogram', in the second case I wouldn't use (gk)su at all.
Instead create a little setuid root wrapper executable, which calls the program.


All times are GMT -5. The time now is 10:12 AM.