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

Re: cannot run X apps when 'su'



on Sun, Jun 16, 2002, Oleg (oleg@tw304h3.cpmc.columbia.edu) wrote:
> On Sunday 16 June 2002 10:55 pm, ttv wrote:
> > Hi, when I su as root, I can't run X apps ...
> >
> >
> > Camranh:/home/thanh# Xlib: connection to ":0.0" refused by server
> > Xlib: Client is not authorized to connect to Server
> > emacs: Cannot connect to X server :0.0.
> > Check the DISPLAY environment variable or use `-d'.
> > Also use the `xhost' program to verify that it is set to permit
> > connections from your machine.
> >
> >
> > any ideas how to fix it ?
> 
> xauth -f /home/${LOGNAME}/.Xauthority extract - $DISPLAY | xauth merge -

<seal>
    Karsten M. Self Good Linuxkeeping Seal of Approval
</seal>

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
   KQED FM:  The bright spot on the dial:  http://www.kqed.org/fm/

Attachment: pgpaHEB_UMagY.pgp
Description: PGP signature


Reply to: