Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-22-2004, 12:18 AM   #1
Registered: Aug 2003
Posts: 46

Rep: Reputation: 15
can't run x apps

I'm runnig SuSE 9.2 but I've had this problem in prior versions and with Mandrake as well. In X, say KDE for instance, if I am running a console, I can't run any X apps while I'm in SU mode. I always get:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0

or similiar error messages. This does not happen if I am in a console as a user. Remember, I'm not talking about a text mode console. I'm talking about a console like "konsole" in X.

How can I solve this problem other than not to be in SU mode which is necessary sometimes?
Old 11-22-2004, 12:50 AM   #2
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
the problems is because when you su you Switch User, to root, while the X display is owned by you, when root users tries to connect it cant, so thats were the error comes from ..... tho in GNOME i can use X apps when i su'd to root ... but I'm not sure what GNOME did to allow it, tho I'm positive it can be done on any non GNOME desktop as well ..
Old 11-22-2004, 02:00 AM   #3
Registered: Aug 2003
Posts: 46

Original Poster
Rep: Reputation: 15
Interesting. When I sudo an app as a user, it works.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can U Run MS apps in MEPIS ? sgliggett MEPIS 5 07-02-2005 05:38 PM
Can't run X apps as root michaely Debian 13 07-18-2004 04:47 AM
Run Java apps Marcos Van Linux - Newbie 12 05-20-2003 10:36 PM
use 'at' to run x apps? florestan Linux - Software 6 04-14-2003 03:18 PM
run windows apps sentme_mail Linux - Newbie 4 09-08-2002 07:04 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:29 PM.

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