changing user with SU, gives "Xlib: connection to ":0.0" refused by server"

Andrew Glen-Young aglenyoung at gmail.com
Mon Oct 8 15:24:44 UTC 2007


On 08/10/2007, (``-_-ยดยด) -- Fernando <Ubuntu at bugabundo.net> wrote:
> I did :
>         #su OTHERUSER
> and :
>         OTHERUSER at PC:~$ gedit
> just to get:
>         Xlib: connection to ":0.0" refused by server
>         Xlib: No protocol specified
>
> Any ideas?

The problem is that the user you're changing to does not have
permissions to write to your Xserver socket.
I'm not sure of the "best" way to fix this, but using xhost(1) should work.

user at host $ xhost +otheruser
user at host $ su otheruser
etc...

I cannot verifiy that this works as I am running headless at the moment.

Hope this helps.

- A.




More information about the ubuntu-users mailing list