From owner-freebsd-stable Mon Aug 19 13:29:40 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 A2FE637B405 for ; Mon, 19 Aug 2002 13:29:37 -0700 (PDT) Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC7DF43E70 for ; Mon, 19 Aug 2002 13:29:32 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g7JKTTf94665; Mon, 19 Aug 2002 13:29:29 -0700 (PDT) (envelope-from jdp@vashon.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.12.4/8.12.4/Submit) id g7JKTSXs081763; Mon, 19 Aug 2002 13:29:28 -0700 (PDT) (envelope-from jdp) Date: Mon, 19 Aug 2002 13:29:28 -0700 (PDT) Message-Id: <200208192029.g7JKTSXs081763@vashon.polstra.com> To: stable@freebsd.org From: John Polstra Cc: thierry@herbelot.com Subject: Re: OpenSSH_3.4p1 sshd does not set XAUTHORITY In-Reply-To: <200208191943.31694.thierry@herbelot.com> References: <200208191943.31694.thierry@herbelot.com> Organization: Polstra & Co., Seattle, WA 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 In article <200208191943.31694.thierry@herbelot.com>, Thierry Herbelot wrote: > > 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 Thanks, that does solve the problem. I'm not sure whether it's correct, though. In the past, I did set XAUTHORITY like that in my .bash_profile, but then at some point when OpenSSH was upgraded I had to remove it because it broke X11 forwarding. Now I have to add it back again? I suspect there's something more basic wrong with the current version of OpenSSH or with PAM. Anyway, I've added a couple of lines which set it only if it wasn't set before, and that seems to work OK until a better fix comes along. : ${XAUTHORITY:=$HOME/.Xauthority} export XAUTHORITY John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message