Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jul 2000 09:53:57 -0700
From:      Ted Faber <faber@ISI.EDU>
To:        "Kevin Oberman" <oberman@es.net>
Cc:        Jason Fesler <jfesler@gigo.com>, Harry Putnam <reader@newsguy.com>, freebsd-mobile@FreeBSD.ORG
Subject:   Re: X-display from laptop to desk 
Message-ID:  <200007051653.JAA01200@ted.isi.edu>
In-Reply-To: Your message of "Mon, 03 Jul 2000 12:24:52 PDT." <200007031924.e63JOqn08344@ptavv.es.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
-----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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007051653.JAA01200>