Re: Running X apps when logged as su'd as root
On Sun, 25 Mar 2001, Hall Stevenson wrote:
> * Brendan O'Connor (brendan642@runbox.com) [010325 22:14]:
> > Is this a consequence of security? Is there some cheap way around it? I'm
> > willing to forgo some security on my home desktop to do run things like
> > qtcups. Thanks!
>
> A cheap way: xhost +localhost
>
> Do that as the *original* user and then su to root.
I've added the following three lines to my /root/.bashrc file:
if [ ! "$USER" = "root" ]; then
export XAUTHORITY=/home/$USER/.Xauthority
fi
Therefor the xhost +localhost can be avoided (which is a security
hole). And its also more convenient...
Martin
Reply to: