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

Re: cannot run X apps when 'su'



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 -

HTH
Oleg


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: