• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Warning: No xauth data; using fake authentication data, for X11 forwarding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning: No xauth data; using fake authentication data, for X11 forwarding


  • Subject: Re: Warning: No xauth data; using fake authentication data, for X11 forwarding
  • From: Martin Costabel <email@hidden>
  • Date: Tue, 13 Nov 2007 11:13:55 +0100

Anton Rang wrote:
On Nov 12, 2007, at 10:25 AM, M. Stanley Bubien wrote:

Unless your X connection is not working, I believe you can safely
ignore that error message.

Well, more to the point for me... why does this happen? It certainly shouldn't, and I've done everything I can to eliminate the message.

You can't eliminate it, I suspect.

ssh is running the command

  xauth list $DISPLAY  (e.g. xauth list /tmp/launch-blah/:0)

and xauth is generating the output

xauth: (argv):1: bad display name "/tmp/launch-blah/:0" in "list" command

I'm not quite sure what the "fix" here is, since the Xauth data probably
isn't generated until the X server starts, which won't happen until sshd
requests that the forwarding happen -- and I think that may be after the
authentication data is transmitted to sshd.

Perhaps best would be to simply disable the warning in sshd for Darwin....

... or teach xauth about the weird new display names.

Here is a little patch against xauth-X11R7.2-1.0.2 from X11apps-13 that
does this. As before, the warning will only disappear if there is an
existing ~/.Xauthority file.

--
Martin

diff -ur X11apps-13/xauth/xauth-X11R7.2-1.0.2/process.c X11apps-13_corr/xauth/xauth-X11R7.2-1.0.2/process.c
--- X11apps-13/xauth/xauth-X11R7.2-1.0.2/process.c	2007-01-09 00:21:24.000000000 +0100
+++ X11apps-13_corr/xauth/xauth-X11R7.2-1.0.2/process.c	2007-11-13 08:44:28.000000000 +0100
@@ -485,6 +485,9 @@
     if (cp && strncmp (cp, "/unix:", 6) == 0)
       prelen = (cp - displayname);

+    if (strncmp (displayname, "/tmp/launch", 11) == 0)
+	displayname = strrchr(displayname, '/') + 1;
+
     if (!parse_displayname (displayname + ((prelen > 0) ? prelen + 1 : 0),
 			    &family, &host, &dpynum, &scrnum, &rest)) {
 	return False;

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)

This email sent to email@hidden

  • Follow-Ups:
    • Re: Warning: No xauth data; using fake authentication data, for X11 forwarding
      • From: Ben Byer <email@hidden>
    • Re: Warning: No xauth data; using fake authentication data, for X11 forwarding
      • From: "Nathaniel Gray" <email@hidden>
References: 
 >Re: Warning: No xauth data; using fake authentication data, for X11 forwarding (From: "M. Stanley Bubien" <email@hidden>)
 >Re: Warning: No xauth data; using fake authentication data, for X11 forwarding (From: Anton Rang <email@hidden>)

  • Prev by Date: Re: X11 OpenGL and Wine
  • Next by Date: Re: [PATCH] More Makefile Cleanup - XDarwin removal
  • Previous by thread: Re: Warning: No xauth data; using fake authentication data, for X11 forwarding
  • Next by thread: Re: Warning: No xauth data; using fake authentication data, for X11 forwarding
  • Index(es):
    • Date
    • Thread