From owner-freebsd-questions Thu Sep 16 9:48: 2 1999 Delivered-To: freebsd-questions@freebsd.org Received: from apotheosis.za.org (apotheosis.za.org [137.158.128.27]) by hub.freebsd.org (Postfix) with ESMTP id 1CE4D153CA for ; Thu, 16 Sep 1999 09:47:49 -0700 (PDT) (envelope-from mwest@uct.ac.za) Date: Thu, 16 Sep 1999 18:47:35 +0200 From: Matthew West To: Laurence Berland Cc: Sheldon Hearn , questions@FreeBSD.ORG Subject: Re: xdm xhosts authorization confusing me Message-ID: <19990916184735.A29127@apotheosis.za.org> Mail-Followup-To: Laurence Berland , Sheldon Hearn , questions@FreeBSD.ORG References: <64092.937488901@axl.noc.iafrica.com> <37E0FC41.1A1D77F6@confusion.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <37E0FC41.1A1D77F6@confusion.net>; from "Laurence Berland" on Thu, Sep 16, 1999 at 10:18:41AM Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You don't need to use a symlink, there's an environment which you can set: XAUTHORITY. [mwest@localhost] ~$ su Password: localhost# setenv XAUTHORITY ~mwest/.Xauthority (assuming root's shell is csh) localhost# xterm & Alternatively, use "su -m" rather than plain "su". -- mwest@uct.ac.za On Thu, Sep 16, 1999 at 10:18:41AM -0400, Laurence Berland wrote: > 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 > > > > Obviously, you would substitute for ``username'' whatever username you > > use to log in to XDM. > > > > Ciao, > > Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message