bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xhost recommendation


From: Simon Josefsson
Subject: xhost recommendation
Date: Fri, 26 Jul 2002 18:31:58 +0200
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu)

bash-2.05b$ DISPLAY=foo emacs
emacs: Cannot connect to X server foo.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.

bash-2.05b$

"xhost" is a poor recomendation, it is insecure, especially on
multi-user systems or untrusted networks.

I suggest something like the below.  Opinions?

--- xfns.c.~1.554.~     2002-07-25 20:50:32.000000000 +0200
+++ xfns.c      2002-07-26 18:30:03.000000000 +0200
@@ -5344,8 +5344,9 @@
       if (!NILP (must_succeed))
        fatal ("Cannot connect to X server %s.\n\
 Check the DISPLAY environment variable or use `-d'.\n\
-Also use the `xhost' program to verify that it is set to permit\n\
-connections from your machine.\n",
+Also use the `xauth' program to verify that you have the proper
+authoritization information needed to connect the X server.\n\
+An insecure way to solve the problem may be to use `xhost'.\n",
               SDATA (display));
       else
        error ("Cannot connect to X server %s", SDATA (display));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]