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

su and x (was Re: XFree86 4.2 bug in Debian Testing)



On Sat, 9 Nov 2002, Jörg Schütter wrote:

> On Sat, 9 Nov 2002 13:36:25 +0200 (EET)
> Martin Fluch <fluch@rock.helsinki.fi> wrote:
> 
> > On Sat, 9 Nov 2002, Rick Moen wrote:
> > 
> > > It's a little simpler to do:
> > > 
> > > $ ssh -X root@localhost
> > 
> > Even easier: the following lines in the /root/.bashrc do the same trick:
> > 
> > if [ ! "$LOGNAME" = "root" ]; then 
> >     export XAUTHORITY=/home/$LOGNAME/.Xauthority
> > fi
> > 
> This solution doesn't work with "su -"
> 
> > And then su works without any problem (and computational overhead as the
> > ssh sollution).
> 
> You can decrease the "overhead" with ssh -c des -X root@localhost

And for what reason use ssh when the application can connect directly to
X. Why insert ssh inbetween?

Cheers,
- Martin




Reply to: