From owner-freebsd-questions Thu Sep 16 12:48: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc2.on.home.com (ha1.rdc2.on.home.com [24.9.0.15]) by hub.freebsd.org (Postfix) with ESMTP id B779515474 for ; Thu, 16 Sep 1999 12:47:50 -0700 (PDT) (envelope-from street@iname.com) Received: from mired.eh.local ([24.64.136.188]) by mail.rdc2.on.home.com (InterMail v4.01.01.07 201-229-111-110) with ESMTP id <19990916194749.XECY6685.mail.rdc2.on.home.com@mired.eh.local>; Thu, 16 Sep 1999 12:47:49 -0700 Received: (from kws@localhost) by mired.eh.local (8.9.3/8.9.3) id PAA34055; Thu, 16 Sep 1999 15:47:48 -0400 (EDT) (envelope-from kws) To: Laurence Berland Cc: Sheldon Hearn , questions@FreeBSD.ORG Subject: Re: xdm xhosts authorization confusing me References: <64092.937488901@axl.noc.iafrica.com> <37E0FC41.1A1D77F6@confusion.net> From: Kevin Street Date: 16 Sep 1999 15:47:47 -0400 In-Reply-To: Laurence Berland's message of "Thu, 16 Sep 1999 10:18:41 -0400" Message-ID: <87ogf2wsd8.fsf@mired.eh.local> Lines: 31 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "20 Minutes to Nikko" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Laurence Berland writes: > that would work for one user, but if I want to be able to su to various > different local users, or come to root from different xdm username > logins, that won't work > > Sheldon Hearn wrote: > > On Thu, 16 Sep 1999 09:11:25 -0400, Laurence Berland wrote: > > > Xlib: connection to ":0.0" refused by server > > > > This is because xdm provides the user who logs in with a cookie which > > must be available later when clients try to display to your X server. > > > > An easy work-around is to provide root with a symlink to your user's > > .Xauthority file as follows: > > > > # cd /root > > # ln -s /home/username/.Xauthority Another easy way to do this is to use ssh to login to the various ids rather than su. ssh automatically does forwarding of the X connections and establishes its own cookies. It has the advantage that you don't have to open up your X security to everyone on the local machine with xhost +localhost. ssh -l user localhost (assuming you've installed ssh from the ports) -- Kevin Street street@iname.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message