Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 1999 18:47:35 +0200
From:      Matthew West <mwest@uct.ac.za>
To:        Laurence Berland <stuyman@confusion.net>
Cc:        Sheldon Hearn <sheldonh@uunet.co.za>, questions@FreeBSD.ORG
Subject:   Re: xdm xhosts authorization confusing me
Message-ID:  <19990916184735.A29127@apotheosis.za.org>
In-Reply-To: <37E0FC41.1A1D77F6@confusion.net>; from "Laurence Berland" on Thu, Sep 16, 1999 at 10:18:41AM
References:  <64092.937488901@axl.noc.iafrica.com> <37E0FC41.1A1D77F6@confusion.net>

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




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