Mailinglist Archive: opensuse (2773 mails)
| < Previous | Next > |
Re: [SLE] xhost wants a display
- From: sttr@xxxxxxx (Stefan Troeger)
- Date: Fri, 31 Dec 1999 03:26:41 +0100
- Message-id: <19991231032641.A465@xxxxxxxxxxx>
Hi,
On Thu, Dec 30, 1999 at 18:30 -0500, Paul W. Abrahams wrote:
> Following a suggestion I saw here earlier, I included the command
>
> xhost +
>
> in my system-wide profile so that I could initiate X programs under
> any user name from any X terminal.
> It seems to work, but it also generates the gratuitous error message
> at login:
>
> xhost: unable to open display ""
>
> Is there a way to make that message go away? The man page is
> unhelpful on that point.
export DISPLAY=":0.0" should help. But it's probably not a good
idea to do a xhost + as this allows anyone to make connections
to your X server (AFAIK this can also be used to spy out what
you're typing). Better use xhost +localhost so that only local
users can connect or _even better_ don't use xhost at all but
xauth instead (see the Security-HOWTO, man Xsecurity, man
xauth).
Ciao,
Stefan
--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
| < Previous | Next > |