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
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
- Re: XFree86 4.2 bug in Debian Testing Ivan Brezina
- Re: XFree86 4.2 bug in Debian Testi... Joseph Pingenot
- Re: XFree86 4.2 bug in Debian ... Yogesh Sharma
- Re: XFree86 4.2 bug in Deb... Matt Zimmerman
- allowing X display from su... Jean Christophe ANDR�
- Re: allowing X display fro... Matt Zimmerman
- Re: allowing X display fro... Michael Eyrich
- Re: allowing X display fro... Matt Zimmerman
- Re: XFree86 4.2 bug in Deb... Martin Fluch
- Re: XFree86 4.2 bug in Deb... Rick Moen
- Re: XFree86 4.2 bug in Deb... Martin Fluch
- Re: XFree86 4.2 bug in Deb... J�rg Sch�tter
- su and x (was Re: XFree86 ... Martin Fluch
- Re: su and x (was Re: XFre... Christian Jaeger
- Re: XFree86 4.2 bug in Debian ... David Stanaway
- Re: XFree86 4.2 bug in Deb... Andreas Kotes
- Re: XFree86 4.2 bug in Debian ... Joseph Pingenot
- Re: XFree86 4.2 bug in Debian Testi... Peter Cordes
- Re: XFree86 4.2 bug in Debian Testing Stephen Gran
- squirrelmail issues Brad B

