Re: magic cookie error
On Sat, 20 Feb 1999, Pollywog wrote:
> I am getting this MAGIC COOKIE error when I try to run some X stuff as root.
> Is there something I can add to my profile in order to avoid it?
>
> Xlib: connection to ":0.0" refused by server
> Xlib: Invalid MIT-MAGIC-COOKIE-1 key
> ktail: cannot connect to X server :0.0
Yes, open an xterm as the user that started the x session and type:
xhost +hostname
where hostname is the name of your local machine.
Or you can use xauth if you care to read the docs.
Reply to: