Re: XFree86 4.2 bug in Debian Testing
On Sat, 9 Nov 2002, Rick Moen wrote:
> > mfluch@seneca:~$ su
> > Password:
> > root@seneca:/home/mfluch> export XAUTHORITY=/home/mfluch/.Xauthority
> > root@seneca:/home/mfluch>
> >
> > ...and then every X application works just as before as the normal user.
>
> 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
And then su works without any problem (and computational overhead as the
ssh sollution).
Cheers,
- Martin
Reply to: