Results 1 to 5 of 5
NOTE : if you read the tutorial and are still experiencing difficulties and would like help, you are asked to start a new topic on the forums .
Please do ...
- 11-08-2004 #1Linux Newbie
- Join Date
- Oct 2004
- Location
- Manchester, England
- Posts
- 165
Running X programs as root
NOTE: if you read the tutorial and are still experiencing difficulties and would like help, you are asked to start a new topic on the forums.
Please do NOT reply to this thread to ask a technical question. Replies to THIS thread should be corrections and enhancements on the tutorial/howto only.
Thanks in advance for your co-operation.
LinuxForums.org
------------------------------------------
I am sure there are many who have this same problem. Not being able to run X programs as root because you don't have authority to use X server.
There are always many suggestions regarding the xhost + commands but there is an easier way to get around this (works every time for me)
Run the program as your normal user like so
You then give root password and away you goCode:su "-c <program>"
- 11-08-2004 #2
or for all you kde users out there:
-lakerdonaldCode:kdesu <program>
- 11-08-2004 #3
Or for all you SuSE users out there...
Code:sux -l root
- 12-27-2005 #4Just Joined!
- Join Date
- Dec 2005
- Posts
- 2
If you have the GNU Network Object Model Environment installed, use:
Code:gnomesu <command>
- 12-27-2005 #5Linux Engineer
- Join Date
- Nov 2004
- Location
- Ft. Polk, LA
- Posts
- 796
If you are in a root shell already and the X credentials weren't transferred over, then you can use the $DISPLAY variable to tell it where your X server is running:
DISPLAY=unix:0.0
or
DISPLAY=127.0.0.1:0.0
The unix one may be a little faster if your kernel supports it.



