From: Simon Josefsson <jas@extundo.com>
Subject: xhost recommendation
Date: Fri, 26 Jul 2002 18:31:58 +0200 [thread overview]
Message-ID: <iluvg7230xt.fsf@latte.josefsson.org> (raw)
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 other threads:[~2002-07-26 16:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=iluvg7230xt.fsf@latte.josefsson.org \
--to=jas@extundo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).