[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xauth problem



On Thu, 15 Jan 1998, Jens B. Jorgensen wrote:

> Remco Blaakmeer wrote:
> 
> > The solution is, of course:
> >
> > XAUTHORITY="${HOME}/.Xauthority"
> > (AFAIK, $HOME is already set when /etc/profile is run)
> >
> > But this is the default location. I think it is better to not set the
> > variable at all if you don't have a good reason to set it.
> 
> Ah, but in the situation I described, you want to point to the logged-in user's
> Xauthority, not roots, so using your command above will not work since once you su HOME
> will be root's home directory. Also as you point out you don't need to set it. I believe
> xdm provides it. Also, you must make sure to 'export' the variable.

So, you want to something like

export XAUTHORITY=~user/.Xauthority

where `user' is the name of the user that is logged in to the X display?

Don't do that. The minute root writes to that file (when root logs in to X
or uses the xauth command), it becomes owned by root and the user can't
log in to X anymore.

What you could do is using ssh. This command will do the trick:

xterm -title Root -n Root -e ssh -l root localhost

You can add it to a Fvwm(1,2,2-95) menu or button bar.

ssh will take care of X forwarding automatically, no matter if you
'connect' to the localhost or another host. In any ssh session, you can
simply do something like "xterm &" and the window will appear on the local
screen.

Remco


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: