Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Linux Resources > Linux Tutorials, HOWTO's & Reference Material > Running X programs as root

Forgot Password?
 Linux Tutorials, HOWTO's & Reference Material   A useful collection of tutorials, guides and reviews compiled here for easy reference purposes.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
 
Thread Tools Display Modes
Old 11-08-2004   #1 (permalink)
Linux Newbie
 
Join Date: Oct 2004
Location: Manchester, England
Posts: 165
Send a message via MSN to FyberOptyx
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
Code:
su "-c <program>"
You then give root password and away you go
FyberOptyx is offline  


Old 11-08-2004   #2 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
or for all you kde users out there:
Code:
kdesu <program>
-lakerdonald
__________________
the lost art of found sound
lakerdonald is offline  
Old 11-08-2004   #3 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 4,136
Send a message via AIM to Dapper Dan
Or for all you SuSE users out there...

Code:
 sux -l root


__________________
CRUX 2.5 + IceWM Registered:#371367 New Members: click here
Dapper Dan is offline  
Old 12-27-2005   #4 (permalink)
Just Joined!
 
Join Date: Dec 2005
Posts: 2
If you have the GNU Network Object Model Environment installed, use:
Code:
gnomesu <command>
backtrace is offline  
Old 12-27-2005   #5 (permalink)
Linux Engineer
 
Join Date: Nov 2004
Location: Ft. Polk, LA
Posts: 794
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.
valan is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:09 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2