Help answer threads with 0 replies.
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 11-14-2004, 12:24 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 1

Rep: Reputation: 0
Obtaining permissions to access the X server through my Konsole

Hi Gurus,

I'm try to install a program (from a .sh file) using my console.
I su into root...
I go to the dir where it is...
I type sh (the name of the executable).sh... like I have for this program in other distros
But I get an error saying:

Xlib: connection to ":0.0" refused by server
Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)

Setup requires an X display to run. There is a display variable set, however
you have no permissions to access the X server (:0.0) it points to.

So I tried su -

I tried joining to the group root

I logged out, and logged in as as root and did the proper steps
...ahhh, that worked!
But even a novice knows being root in a GUI is not the the best practice.

I just started to use this Novell Linux Desktop (beta)... which from what I understand its basically SuSE9.2

I've ran this .sh file on various SuSE, RedHat, and Mandrake distros and it installed as easy as when I switched into "root".
Does anyone have the answer, or an idea?
Your help is warmly appreciated!
Old 11-14-2004, 09:40 AM   #2
Senior Member
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36

Open a shell with users permissions and type the following:
xhost +localhost
it will enable all local users to open/run X app.
then do your stuff with the root user and when it's finished, type as user:
xhost -
man xhost for more info...
Note that technique is not the most secure but the easiest



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
security-access permissions kumary Linux - Newbie 7 12-03-2005 02:40 PM
Permissions for Samba Access BerlinBadger Linux - Networking 1 10-28-2005 10:13 AM
Obtaining sources by CVS - no cvs access cybrjackle *BSD 0 01-18-2005 09:28 AM
File access permissions gumbald Slackware 4 10-22-2004 09:23 PM
forced access permissions Clemente Linux - General 1 11-20-2003 06:35 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 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