LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



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

Rep: Reputation: 0
gksu with c++


Hi...

how can I use gksu command in my qt program to make it run under root user ???
 
Old 10-23-2008, 06:22 PM   #2
almatic
Member
 
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.
 
  


Reply


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 06:42 AM
gksu and xhost Haz2a Ubuntu 2 09-07-2006 05:35 AM
gksu or alternative? shame Slackware 4 05-09-2006 05:25 PM
problems with su, gksu nixer4me Debian 1 03-11-2006 05:39 PM
Error while running gksu Ephracis Linux - Software 0 10-27-2004 06:09 AM


All times are GMT -5. The time now is 01:04 AM.

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