Welcome to the most active Linux Forum on the web.
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-15-2004, 02:44 PM   #1
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,

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

Rep: Reputation: 66

You could try that:
xhost +LOCAL:
Old 11-16-2004, 09:57 AM   #3
Registered: Nov 2003
Location: Belgium
Posts: 81

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


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

All times are GMT -5. The time now is 07:24 PM.

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