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
|