SUMMARY: X server down

From: Charles Gagnon (charles@Grafnetix.COM)
Date: Tue May 06 1997 - 08:41:37 CDT


Hello everyone,

Here's my summary. First, let's look a resume of my original question:

> I have Sparc 4s running Solaris 2.4 and OpenWindows. The station are
> logged and have a couple of applications running. The apps running now
> are OK but I can't start anything new without getting this message:
>
> AUDIT: Mon May 5 14:42:01 1997: 371 X: client 15 rejected from local host
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
>
> Now, these are things I tried and that does not work:
>
> - Resetting the DISPLAY variable (tried hostname:0.0, :0.0, nothing)
> - Tried fooling around with xhost
>
> I still have no result.
>
> I noticed on a particular machine that, the XServer is running with these
> options:
>
> /usr/openwin/bin/X :0 -auth /home/train04/.xsun.bizet:0
>
> The username is fine and the hostname is fine also but there is no file
> /home/train04/.xsun.bizet:0 How I can I fix this without loging out and in
> again.

I don't know the exact answer to my problem but it seems to related to the
deletion of some files in the /tmp directory. All I know is to make It
wouldn't happen again (specially during a training), I removed the
authentication on the XServer by modifying the startup line. Since this
Network segment is not connected to anything, it's pretty safe for me to do
so.

Here are the options that Openwin take concerning security and/or
authentication:

  /usr/openwin/bin/openwin -auth magic-cookie
  /usr/openwin/bin/openwin -auth sun-des
  /usr/openwin/bin/openwin -noauth

The modify the authication procedure for the Openwin X server. Really
interesting info on that and the .Xauthority files in the Answerbook.

Thanks a lot:

     Patrick L. Nolan
     Daniel Baker
     Karl E. Vogel
     FLOYD, RANDALL D.
     Jochen Bern
     Andy J. Stefancik

For their answers.

On May 5, "Patrick L. Nolan" writes:
> Subject: Re: URGENT: X Server down
> Here's a wild guess. Do you have a daily or weekly cron job that
> clears stuff out of /tmp? If it's like my old SunOS system, OpenWindows
> puts some magical sockets there with names like /tmp/.TTX_36.64.0.121_0
> and /tmp/.NeWS-unix/N0 and /tmp/.X11-unix/X0. If your cron job hasn't
> been modified to leave sockets untouched, then X will suffer horrible
> problems out of the blue one day.
}-- End of excerpt from "Patrick L. Nolan"

On May 5, Daniel Baker writes:
> Subject: Re: URGENT: X Server down
> Are you UID root? You probabl yshouldn't be
>
> Daniel
>
}-- End of excerpt from Daniel Baker

On May 5, "Karl E. Vogel" writes:
> Subject: Re: URGENT: X Server down
> >> On Mon, 5 May 1997 15:23:04 -0400 (EDT),
> >> Charles Gagnon <charles@Grafnetix.COM> said:
>
> C> Hello All, I though someone might know the answer to this question.
> C> - Resetting the DISPLAY variable (tried hostname:0.0, :0.0, nothing)
>
> This happened to me once. Did you try "unix:0.0"?
>
> --
> Karl Vogel vogelke@c17.wpafb.af.mil
> ASC/YCOA, Wright-Patterson AFB, OH 45433 937-255-3688
>
> I think men who have a pierced ear are better prepared for
> marriage. They've experienced pain and bought jewelry. --Rita Rudner
}-- End of excerpt from "Karl E. Vogel"

On May 5, "FLOYD, RANDALL D." writes:
> Subject: RE: URGENT: X Server down
> If you do a 'xhost +' it should resolve that problem. This essentially
> disables all security/authority to the use of the X engine from all
> clients. I hope that resolves it, because I don't know of anything else
> to tell you that would help.
>
> Randall Floyd
> Otis Elevator
> ----------
}-- End of excerpt from "FLOYD, RANDALL D."

On May 5, "FLOYD, RANDALL D." writes:
> Subject: RE: URGENT: X Server down
> If you do a 'xhost +' it should resolve that problem. This essentially
> disables all security/authority to the use of the X engine from all
> clients. I hope that resolves it, because I don't know of anything else
> to tell you that would help.
>
> Randall Floyd
> Otis Elevator
}-- End of excerpt from "FLOYD, RANDALL D."

On May 6, Jochen Bern writes:
> Subject: Re: URGENT: X Server down
> > I have Sparc 4s running Solaris 2.4 and OpenWindows. The station are
> > logged and have a couple of applications running. The apps running now
> > are OK but I can't start anything new without getting this message:
> > AUDIT: Mon May 5 14:42:01 1997: 371 X: client 15 rejected from local host
> > Xlib: connection to ":0.0" refused by server
> > Xlib: Client is not authorized to connect to Server
>
> Sounds as if you have a cron Job regularly cleaning "old Files" from /tmp
> - and removing the *seemingly* unused X11 Sockets there.
>
> Regards,
> J. Bern
> --
> /\ /""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\
> / \/ bern@uni-trier.de (Size Limit!) | P.O. Box 1203 | Ham: \/\
> / J. \ bern@ti.uni-trier.de (SUNAttachm.OK) | D-54202 Trier | DD0KZ / \
> \Bern/ No Finger etc.; Use Mail (Subj. "##" for Autoreply List) and \ /
> \ /\ WWW. /\/
> \/ \____________________________________________________________/
}-- End of excerpt from Jochen Bern

On May 6, Andy J. Stefancik 237-2164 writes:
> Subject: Re: URGENT: X Server down
> If the application and server are on the same host, try removing
> .Xauthority. If they are on different hosts, use xhost +apphost from
> the machine that will be doing the displaying.
>
> Andy S.
>
}-- End of excerpt from Andy J. Stefancik 237-2164

-- 
Charles Gagnon                      | Any reproduction, in whole or in part,
Systems Engineer                    | of the opinions herein without written
Charles@Grafnetix.COM               | consent of the National Opinion Guild
http://www.Grafnetix.COM/~charles/  | is strictly forbidden.

Researchers have discovered that chocolate produces some of the same reactions in the brain as marijuana....The researchers also discovered other similarities between the two, but can't remember what they are. -- Matt Lauer on NBC's Today show, August 22



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:54 CDT