LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-19-2006, 06:09 PM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
Run prog as Root and display in user GUI?


I want to run a program as root and run it in my user GUI, what is the best way of doing this?

I could just link the Xauth but I'm not sure if this is the right/best way of doing this.

I want to run root-tail but the logfiles need to be read by root. Unless there is a better way of running root-tail without running it as root?
 
Old 06-19-2006, 06:36 PM   #2
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
Code:
kdesu programfoo
works if you have KDE installed.
 
Old 06-19-2006, 06:48 PM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
kde? no.

fluxbox.
 
Old 06-20-2006, 03:51 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
You can put your user in the group adm, here my /var/log/syslog is owned by root:adm with rw for root and r for adm.
Otherwise if you want to open a root gui from a user session, just enter this
Code:
#xauth merge ~user/.Xauthority
#gui-app
or if you want, you can use sux
Code:
user@host:~$ sux gui-app
I don't know root-tail but I bet its pretty safe (tail -f log)

Last edited by nx5000; 06-20-2006 at 03:52 AM.
 
Old 06-20-2006, 05:05 AM   #5
technopasta
Member
 
Registered: Apr 2004
Location: Australia
Distribution: Debian
Posts: 31

Rep: Reputation: 15
you should be able to install gksu or kdesu without installing the rest of Gnome/KDE but suX sounds like what you want.
 
Old 06-20-2006, 08:38 AM   #6
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
thanks I'm getting suX now and will give it a try
 
  


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
Can't run gui (X) programs as root user nazdrowie Linux - General 25 12-02-2008 02:24 AM
How to run GUI program as root shadkong Slackware 8 09-20-2005 03:24 PM
Unable to run a GUI app as root using su? vharishankar Linux - General 7 05-25-2005 09:08 AM
how do I make sure that the user that is going to run the script is a root user??? nikold01 Linux - General 3 09-10-2004 08:54 AM
Can't run gui applications as root vdogvictor Linux - General 26 08-19-2004 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:39 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
Open Source Consulting | Domain Registration