Rob Hudson wrote:

> Where can I tell X to allow root (or anyone from localhost) to be able
> to connect to the server?  Someone said try 'xset +localhost' but that
> didn't do anything.

Short answer: man Xsecurity

Longer answer:

You're probably using MIT-MAGIC-COOKIE authorization.

You have a cookie in ~/.Xauthority.  If you change your home directory
with su, it won't find the right .Xauthority.  Fix that by setting
the XAUTHORITY environment variable.

I do not recommend using host-based authorization, unless your machine
is off the Internet.

If you really want to switch from MIT-MAGIC-COOKIE to host-based
authorization, find the command used to start the X server and
change the "-auth" argument.  If you use xdm, I think you can edit
/etc/X11/xdm/xdm-config and change DisplayManger._0.authorize to
false.  If you use kdm or gnome's dm, I don't know.

Disclaimer: I don't really understand X security very well.  For many
years, I had "xhost +" in my .xsession files.

-- 
                                        K<bob>
[EMAIL PROTECTED], http://www.jogger-egg.com/

Reply via email to