From owner-freebsd-stable Mon Aug 19 10:44: 2 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C59137B400 for ; Mon, 19 Aug 2002 10:43:58 -0700 (PDT) Received: from herbelot.dyndns.org (d108.dhcp212-198-26.noos.fr [212.198.26.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86A5643E6A for ; Mon, 19 Aug 2002 10:43:56 -0700 (PDT) (envelope-from thierry@herbelot.com) Received: from diversion.herbelot.nom (diversion.herbelot.nom [192.168.2.6]) by herbelot.dyndns.org (8.9.3/8.9.3) with ESMTP id TAA96280; Mon, 19 Aug 2002 19:43:26 +0200 (CEST) (envelope-from thierry@herbelot.com) Content-Type: text/plain; charset="iso-8859-1" From: Thierry Herbelot To: John Polstra , stable@FreeBSD.ORG Subject: Re: OpenSSH_3.4p1 sshd does not set XAUTHORITY Date: Mon, 19 Aug 2002 19:43:31 +0200 User-Agent: KMail/1.4.2 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200208191943.31694.thierry@herbelot.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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