Summary: How the /etc/X0.hosts works?

From: Hao Wang (
Date: Thu Sep 23 1993 - 22:18:30 CDT


I posted following to the list couple days ago.

>I have Sun SPARCstation 2 running Sun OS 4.1.3 and OW 3.1. I edited the
>/etc/X0.hosts file and put one system's hostname with domain name in the
>file. I restart the system. Then telnet to that system. Set the display.
>Start the X client application. But I still get following error message.
>Xlib: connection to "my_sun_sparc2:0.0" refused by server
>Xlib: Client is not authorized to connect to server
>Could not open display my_sun_sparc2:0
>Why this not working? Thanks for all help.

The general response to this was use xhost command. Among the others. One
form Michael Sullivan mentioned that the /etc/X*.hosts is disabled by default.
The xnews uses MIT magic cookie authorization protocol. Another one from
Thomas W Oliver who also mentioned about the magic cookie security and pointed
that the openwindow started with -auth <authfile> option. (The authfile is set
up as $HOME/.xnews.<MACHINENAME>:0). Use -noauth option to enable the

Thanks very much to:

Thomas W Oliver <>
Michael Sullivan <>
Brian Decker <>
Andrew Benson <>
Randy Olsson <>
Ronald Mulligan <>
Kevin Sheehan <>
Sumner Hushing <>
Bruce Kall <bruce@Brainstorm.mayo.EDU>


This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:16 CDT