Re: SuSE 8.2 X permisions

Bryan Lawrence <[email protected]>
Newsgroups gmane.linux.hardware.sony
Organization BADC
Message-ID <[email protected]>
Hi Allister

If you run an x application from a console which is not the same user as the 
owner of the display, then you will get that message.

I tend to do an xhost+ before doing an su for this reason, but I should 
probably add the root user to the xhost command line ... rather than a plus, 
which would allow anyone to open a session on my display ...

Cheers,
Bryan

On Thursday 29 May 2003 09:26, Allister Levi Sanchez wrote:
> Hi,
>
> I guess this is off-topic I'm sure somebody in this list knows about how
> to fix this problem.  Anyway, here goes...
>
> I've just installed SuSE 8.2 on my Vaio PCG-GR5F/BP (Japanese model) and
> everything works great (except the modem, but I don't need it this time
> anyway).  However, when I do su in a konsole terminal and run X
> applications, e.g. emacs, I get this error message:
>
> allister@ngtalx:~> su
> Password:
> ngtalx:/home/allister # emacs
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> 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.
>
> ngtalx:/home/allister #
>
> It's my first time ever with SuSE (it's always been Red Hat or Mandrake)
> so I wonder if somebody could tell me how to fix this in the proper way.
>
> Thanks in advance,
>
> Allister Levi Sanchez
> Niigata, Japan
>
>
> _______________________________________________
> Linux-sony mailing list: [email protected]
> Subscribe/Unsubscribe:
> http://returntonature.com/mailman/listinfo/linux-sony Linux-Sony
> Documentation: http://returntonature.com/linux/phpwiki

-- 
Bryan Lawrence, Head NCAS/British Atmospheric Data Centre
web: www.badc.nerc.ac.uk  phone: +44 1235 445012
CLRC: Rutherford Appleton Laboratory, Chilton, Didcot, OX110QX, UK
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.