From owner-freebsd-mobile Wed Jul 5 9:54: 3 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by hub.freebsd.org (Postfix) with ESMTP id 20A4D37B509 for ; Wed, 5 Jul 2000 09:53:59 -0700 (PDT) (envelope-from faber@ISI.EDU) Received: from ted.isi.edu (ted.isi.edu [128.9.160.104]) by boreas.isi.edu (8.9.3/8.9.3) with ESMTP id JAA19097; Wed, 5 Jul 2000 09:53:58 -0700 (PDT) Received: from ted.isi.edu (localhost [127.0.0.1]) by ted.isi.edu (8.9.3/8.9.3) with ESMTP id JAA01200; Wed, 5 Jul 2000 09:53:57 -0700 (PDT) (envelope-from faber@ted.isi.edu) Message-Id: <200007051653.JAA01200@ted.isi.edu> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Kevin Oberman" Cc: Jason Fesler , Harry Putnam , freebsd-mobile@FreeBSD.ORG Subject: Re: X-display from laptop to desk In-Reply-To: Your message of "Mon, 03 Jul 2000 12:24:52 PDT." <200007031924.e63JOqn08344@ptavv.es.net> X-Url: http://www.isi.edu/~faber Date: Wed, 05 Jul 2000 09:53:57 -0700 From: Ted Faber Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org -----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 recommend using sudo, too. - ---------------------------------------------------------------------- Ted Faber faber@isi.edu USC/ISI Computer Scientist http://www.isi.edu/~faber (310) 448-9190 PGP Keys: http://www.isi.edu/~faber/pubkeys.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (FreeBSD) Comment: Exmh version 2.1.1 10/15/1999 iD8DBQE5Y2glaUz3f+Zf+XsRAl0dAKCJkYPZyc4/JvLX9RddGtKZdB45FQCgtzoQ ojlPM55rgHqENtjoKrxIElA= =TE8w -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message