Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-19-2004, 11:58 PM   #1
Registered: Aug 2004
Distribution: Suse Linux 9.1
Posts: 47

Rep: Reputation: 15
Launching apps under Root User Name

Weird...... I used the SU command to switch users to root. Then i tried to launch xemacs, i wasnt able to. I thought maybe it was just an issue with xemacs, so I tried emacs but I still got an error message. Then I tried xmms, but I couldnt run that either. Here are the error messages ( I have no idea what to make of them )...................


drakeDoogle@linux:~> su root
linux:/home/lxuser # xemacs
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

X server not responding
: ":0.0"
linux:/home/lxuser # emacs
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

emacs: Cannot connect to X server :0.0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.

linux:/home/lxuser # xmms
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

** CRITICAL **: Unable to open display


Any idea what this means? Thanx again
Old 08-20-2004, 12:03 AM   #2
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
I know its something with locking of the screen for the current user, and mostly seem to happen in KDE. i never bothered to look it up though. Have you tried ???

Last edited by Mikhail_16; 08-20-2004 at 12:06 AM.
Old 08-20-2004, 05:15 AM   #3
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
This is quite common. It generally depends on how your Xserver is set up and wether or not you have any virtual consoles free. For example, if you run slackware and you boot up into graphical mode or runlevel higher than 3, then it will only leave one virtual console open and all other login attempts will be refused by the Xserver when running any other graphical apps by use of su. Not sure with other distros. Except gentoo I prefer to not let root log in from a console at all.

Nevertheless GKSu should solve that problem for you. It's basically a graphical (gtk) gui to the su command.

Just go 'gksu appname' Sometimes you have to supply the full path name to the program if it's not in your path.

Hope that helps.


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
Error launching gnome apps as root: " Failed to contact configuration server" Kropotkin Fedora 1 12-16-2005 11:11 AM
Install apps as root or user ? jlassiter Linux - Newbie 13 09-10-2004 10:17 AM
root apps running on X under regular user?? nny0000 Slackware 3 02-05-2004 02:09 PM
Running root apps in X using regular user? nny0000 Slackware 10 01-15-2004 12:23 PM
Apps wont open as user but will as root slewis1972 Linux - Software 1 10-25-2003 12:07 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 AM.

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