From owner-freebsd-mobile Wed Jul 5 21: 9: 6 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from merlin.prod.itd.earthlink.net (merlin.prod.itd.earthlink.net [207.217.120.156]) by hub.freebsd.org (Postfix) with ESMTP id 8218C37C044 for ; Wed, 5 Jul 2000 21:09:04 -0700 (PDT) (envelope-from cjc@earthlink.net) Received: from dialin-client.earthlink.net (pool0034.cvx20-bradley.dialup.earthlink.net [209.179.250.34]) by merlin.prod.itd.earthlink.net (8.9.3-EL_1_3/8.9.3) with ESMTP id VAA22183; Wed, 5 Jul 2000 21:08:56 -0700 (PDT) Received: (from cjc@localhost) by dialin-client.earthlink.net (8.9.3/8.9.3) id VAA00679; Wed, 5 Jul 2000 21:07:18 -0700 (PDT) Date: Wed, 5 Jul 2000 21:07:16 -0700 From: "Crist J. Clark" To: Ted Faber Cc: Kevin Oberman , Jason Fesler , Harry Putnam , freebsd-mobile@FreeBSD.ORG Subject: Re: X-display from laptop to desk Message-ID: <20000705210716.A631@dialin-client.earthlink.net> Reply-To: cjclark@alum.mit.edu References: <200007031924.e63JOqn08344@ptavv.es.net> <200007051653.JAA01200@ted.isi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200007051653.JAA01200@ted.isi.edu>; from faber@ISI.EDU on Wed, Jul 05, 2000 at 09:53:57AM -0700 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jul 05, 2000 at 09:53:57AM -0700, Ted Faber wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Content-Type: text/plain; charset=us-ascii > > "Kevin Oberman" wrote: > > > >A better solution to this is to redefine the XAUTHORITY variable > >to point at your X login .Xauthority file. > > > >For sh and sons: > >XAUTHORITY=/home/jfesler/.Xauthroity > >export XAUTHORITY > > > >For csh and children: > >setenv XAUTHORITY ~jfesler/.Xauthority > > This will break X11 forwarding under OpenSSH (even if you don't drag > root into it). OpenSSH creates its own xauthority file in /tmp and > points the XAUTHORITY envronment variable at it. I spent a whole day > figuring out that setting XAUTHORITY manually in my .bashrc was my > problem. I would recommend checking to see if XAUTHORITY is set first > and initializing it to $HOME/.Xauthority only if no other program has > set it. Resetting XAUTHORITY under ssh is perilous. Note that this > will break X11 forwarding under the same login. > > (Under the ssh-1.2.27 port, setting XAUTHORITY is fine, but the future > is OpenSSh on FreeBSD.) I thought that using X and su through ssh "just worked" now-a-days. I remember the problem happening to me and I had been trying to figure out how I fixed it. I _thought_ that it had just started working when I switched to the OpenSSH port and then to the OpenSSH in the base 4.0 systems. But I could swear that one of the people early on in the thread said that he was using FreeBSD 4.0 and having the problem. Does this "just work" with OpenSSH or did I fix it and forget how? -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message