LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-13-2004, 11:24 PM   #1
Newbie101
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 -
Nothing.

I tried joining to the group root
Nothing.

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, 08:40 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

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

Oliv'
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration