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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Linux Resources > Linux Tutorials, HOWTO's & Reference Material
Reload this Page Running X programs as root
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

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

 
 
Thread Tools Display Modes
Old 11-08-2004   #1 (permalink)
FyberOptyx
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)
lakerdonald
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
__________________
"we ain't made of nothing but water and shit" - isaac brock
lakerdonald is offline  
Old 11-08-2004   #3 (permalink)
Dapper Dan
Trusted Redneck
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 3,562
Send a message via AIM to Dapper Dan
Or for all you SuSE users out there...

Code:
 sux -l root


__________________
Crux 2.4 + IceWM Linux is not Windows Registered: #371367

"I would rather have 10 people who know a little bit about something and are willing to help than one know-it-all who sees it as his life's pursuit to correct everyone else." -techieMoe
Dapper Dan is offline  
Old 12-27-2005   #4 (permalink)
backtrace
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)
valan
Linux Engineer
 
Join Date: Nov 2004
Posts: 785
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 06:20 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0