LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-20-2004, 12:58 AM   #1
MDBlueIce
Member
 
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
Password:
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, 01:03 AM   #2
Mikhail_16
Member
 
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 www.google.com ???

http://www.ethereal.com/lists/ethere.../msg00013.html

Last edited by Mikhail_16; 08-20-2004 at 01:06 AM.
 
Old 08-20-2004, 06:15 AM   #3
jev-bird
Member
 
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.
 
  


Reply


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 12:11 PM
Install apps as root or user ? jlassiter Linux - Newbie 13 09-10-2004 11:17 AM
root apps running on X under regular user?? nny0000 Slackware 3 02-05-2004 03:09 PM
Running root apps in X using regular user? nny0000 Slackware 10 01-15-2004 01:23 PM
Apps wont open as user but will as root slewis1972 Linux - Software 1 10-25-2003 01:07 PM


All times are GMT -5. The time now is 06:45 PM.

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