From owner-freebsd-mobile Mon Jul 3 12:27:28 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by hub.freebsd.org (Postfix) with ESMTP id 43C1D37C263 for ; Mon, 3 Jul 2000 12:27:25 -0700 (PDT) (envelope-from oberman@ptavv.es.net) Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (8.10.1/8.10.1) with ESMTP id e63JOqn08344; Mon, 3 Jul 2000 12:24:53 -0700 (PDT) Message-Id: <200007031924.e63JOqn08344@ptavv.es.net> To: Jason Fesler Cc: Harry Putnam , freebsd-mobile@FreeBSD.ORG Subject: Re: X-display from laptop to desk In-reply-to: Your message of "Sat, 01 Jul 2000 18:13:55 PDT." Date: Mon, 03 Jul 2000 12:24:52 -0700 From: "Kevin Oberman" Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Date: Sat, 1 Jul 2000 18:13:55 -0700 (PDT) > From: Jason Fesler > Sender: owner-freebsd-mobile@FreeBSD.ORG > > > If I su to root on the remote, I can no longer run anthing that needs > > X. For example: > > That's because your authentication changed. > > What we do at work i "ssh root@localhost", give the root password, > and a new set of X forwarding is created. At this point you can > now run X apps as root. While this works fine, it moves the IPC from the "local" connect to a "network" connect which is far less efficient. 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 R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message