LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-15-2004, 01:44 PM   #1
maenho
Member
 
Registered: Nov 2003
Location: Belgium
Posts: 81

Rep: Reputation: 15
xhost +localhost has no effect anymore


Dear all,

I recently installed KDE 3.3.1 on my Slackware 10.0 laptop. To avoid having to do 'xauth add magic cookie' each time I want to run an X application as root I had added the command xhost +localhost in my ~/.profile. I know this is not a nice solution but it was good enough for me. Since I installed KDE 3.3.1 this trick does not work anymore. If I do: 'xhost +localhost' I get the usual reply: 'localhost being added to access control list' but when I su to root I now get:

root@SlackLap:~# Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
kedit: cannot connect to X server :0.0

I can solve this by adding the magic cookie from the user to the Xauthority file of root but I would like this to happen automatically. I just want all local users to 'always' have access to my local X server (independant of who is running it). Is there an official way to do this (I understand the security risks involved and yes I would still like it this way)?

friendly regards,


Steven
 
Old 11-16-2004, 03:05 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Hello,

You could try that:
Code:
xhost +LOCAL:
Yves.
 
Old 11-16-2004, 08:57 AM   #3
maenho
Member
 
Registered: Nov 2003
Location: Belgium
Posts: 81

Original Poster
Rep: Reputation: 15
indeed you are correct. Thank you for your response
 
  


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
Change localhost name in username@localhost n175uj Linux - Newbie 4 07-01-2005 08:25 PM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 08:01 AM
xhost localhost ALWAYS true_atlantis Slackware 1 05-21-2004 08:45 AM
How to permanently add localhost via xhost? h00chman Linux - Newbie 1 04-23-2004 11:57 PM
Please,the question with "xhost +localhost" fliny Linux - Networking 7 10-16-2003 07:47 PM

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

All times are GMT -5. The time now is 06:48 AM.

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