Some distros make it so that the super user cannot access the Xserver.
In such a case, trying to start up any application in X as root will give
you this error:

 Xlib: connection to "localhost:0.0" refused by server
 Xlib: Client is not authorized to connect to Server

There are a number of ways to get around this.  Try exporting
XAUTHORITY=</home/<usr account>/.Xauthority as root before executing
xhost, for example.

Jesse

On 8 Mar 2003, Dheeraj  Sehrawat wrote:

> Hi
> while executing xhost +localhost
> i am getting followinf error:
>
> Xlib: connection to "localhost:0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> xhost:  unable to open display "localhost:0.0"
>
> i have tried it for both super user and normal user.Nothing is
> working fine.plz help me to solve this
> Thanks
> -Dheeraj
>
> _______________________________________________
> XFree86 mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/xfree86
>
>


_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to