Date: Mon, 19 Aug 2002 19:43:31 +0200 From: Thierry Herbelot <thierry@herbelot.com> To: John Polstra <jdp@polstra.com>, stable@FreeBSD.ORG Subject: Re: OpenSSH_3.4p1 sshd does not set XAUTHORITY Message-ID: <200208191943.31694.thierry@herbelot.com> In-Reply-To: <XFMail.20020819102417.jdp@polstra.com> References: <XFMail.20020819102417.jdp@polstra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, after searching in some mailing lists, I've found that adding : setenv XAUTHORITY ~/.Xauthority to the .login file on the machine I'm logging in has solved this problem I hope this has no bad implication on security. TfH Le Monday 19 August 2002 19:24, John Polstra a écrit : > I upgraded one of my machines to -stable from 16 August 2002, and > now I'm seeing some problems with X11 forwarding. The problem > appears to be with sshd and/or PAM on the upgraded machine. > > When I simply slogin from another machine (strings) to the upgraded > machine (thin), X11 forwarding works OK: > > strings$ slogin thin > Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 > The Regents of the University of California. All rights > reserved. > > FreeBSD 4.6-STABLE (THIN) #24: Fri Aug 16 19:40:57 PDT 2002 > > Terminal type is xterm. > thin$ xterm [An xterm appears as expected.] > ^Cthin$ > > But now if I "su" on the target machine, I can no longer run X > programs: > > thin$ su > Password: > thin# xterm > X connection to localhost:10.0 broken (explicit kill or server shutdown). > thin# > > But this works if I slogin from strings to a different machine > running -stable from around the end of June. > > Back on thin (the upgraded machine), if I use "su -m" then it works. > > The problem appears to be with the XAUTHORITY environment variable. > When I slogin to thin (the upgraded machine) XAUTHORITY does not get > set in my environment. When I slogin to the older machine, it does > get set, to something like "/tmp/ssh-sl53EABb/cookies". > > Any suggestions? It looks like a bug to me. > > John > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208191943.31694.thierry>