Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-22-2008, 03:29 AM   #1
LQ Newbie
Registered: Oct 2008
Posts: 12

Rep: Reputation: 0
gksu with c++


how can I use gksu command in my qt program to make it run under root user ???
Old 10-23-2008, 05:22 PM   #2
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gksu not working semtex Linux - Desktop 3 02-16-2007 05:42 AM
gksu and xhost Haz2a Ubuntu 2 09-07-2006 04:35 AM
gksu or alternative? shame Slackware 4 05-09-2006 04:25 PM
problems with su, gksu nixer4me Debian 1 03-11-2006 04:39 PM
Error while running gksu Ephracis Linux - Software 0 10-27-2004 05:09 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration