<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
(``-_-´´) -- Fernando wrote:
<blockquote cite="mid200710081636.39809.Ubuntu@bugabundo.net"
 type="cite">
  <pre wrap="">On Monday 08 October 2007 16:24:44 Andrew Glen-Young wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On 08/10/2007, (``-_-´´) -- Fernando <a class="moz-txt-link-rfc2396E" href="mailto:Ubuntu@bugabundo.net"><Ubuntu@bugabundo.net></a> wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">I did :
        #su OTHERUSER
and :
        OTHERUSER@PC:~$ gedit
just to get:
        Xlib: connection to ":0.0" refused by server
        Xlib: No protocol specified

Any ideas?
      </pre>
    </blockquote>
    <pre wrap="">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@host $ xhost +otheruser
user@host $ su otheruser
etc...
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Got this
$ xhost +OTHERUSER
xhost:  bad hostname "OTHERUSER"

  </pre>
  <blockquote type="cite">
    <pre wrap="">I cannot verifiy that this works as I am running headless at the moment.

    </pre>
  </blockquote>
  <pre wrap=""><!---->
It seems you have a bit of head scratching to do. lolol

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hope this helps.

- A.

    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
<br>
When I run into this problem I use xhost and it works well<br>
<br>
$ xhost +<br>
$ sudo command (or -s to get su command prompt)<br>
<br>
Rick<br>
<br>
</body>
</html>