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

Re: X problem as root



Hello,
You have to export the variable XAUTHORITY before invoke su
export XAUTHORITY=~/.Xauthority
su

do not use the '-' in su command  because this invoke the shell which read the
.profile files and over write you XAUTHORITY variable.
You will find a sample .bash_profile under /usr/share/docs/bash........
I hope it helped
Pavlos

Αρχικό μήνυμα από  Marco Calviani <mirtux@studenti.fisica.unifi.it>:

> Hi everybody,
>   i've got a problem whenever i become root and try to open a window in 
> my user X session:
> 
> for example:
> 
> user@local:~$ su
> root@local:~$ eog
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
> 
> 
> Does anybody can diagnose the problem?
> 
> Thanks,
> MC
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 





Reply to: