On Sat, 9 Nov 2002, Rick Moen wrote:

> > [EMAIL PROTECTED]:~$ su
> > Password: 
> > [EMAIL PROTECTED]:/home/mfluch> export XAUTHORITY=/home/mfluch/.Xauthority 
> > [EMAIL PROTECTED]:/home/mfluch> 
> > 
> > ...and then every X application works just as before as the normal user.
> 
> It's a little simpler to do:
> 
> $ ssh -X [EMAIL PROTECTED]

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 via email to