jacksu@sara.atmos.uiuc.edu (Jack Su) (01/23/91)
Hi sun / X experts: I've just upgraded our SUN SPARCs to OS 4.1.1. When I run openwindow, I can not have X-clients display in OpenWindow. I've tried this with other suns running openwindow, X11R4 on HP 9000, and X11R4 on a Cray. There must be something SIMPLE that I stupidly am forgetting. I keep getting the following message> Xlib: connection to "sara.atmos.uiuc.edu:0.0" refused by server Xlib: Client is not authorized to connect to server I've tried starting openwindow without authorization (-noauth). I've tried starting openwindow with -defeateventsecurity. I've tried using xauth to extract and merge .Xauthority file. Nothing. The same message. I would appreciate any help/suggestions/comments from ANYONE. Jack Su (j-su@uiuc.edu, jacksu@sara.atmos.uiuc.edu) (BTW these client programs worked before using OS 4.1 and X11R4 with Xview).
ant@brolga.cc.uq.oz.au (Anthony Murdoch) (01/23/91)
jacksu@sara.atmos.uiuc.edu (Jack Su) writes: >Hi sun / X experts: >I've just upgraded our SUN SPARCs to OS 4.1.1. When I run >openwindow, I can not have X-clients display in OpenWindow. >I've tried this with other suns running openwindow, X11R4 on HP 9000, >and X11R4 on a Cray. There must be something SIMPLE that I stupidly am >forgetting. I keep getting the following message> >Xlib: connection to "sara.atmos.uiuc.edu:0.0" refused by server >Xlib: Client is not authorized to connect to server I was confused by this for a while. 1> You must do an xhost +machine for each machine that you want to run clients on. 2> You must run the xhost as the user that is logged in on the console (I do it from within .xinit) 3> I think the user-id running the clients must be the same as the user-id logged in on the console of the workstation. I think that 2 and 3 are only needed if you are running with the authority checking. I might add that I also think that this is one hell of a pain, esp when you think that NeWS has its own set of authority stuff as well :-) ant -- V ant "It's great to be young and insane" \o/ ant@brolga.cc.uq.oz.au - Dream Team -O- Anthony Murdoch Prentice Computer Centre /0\ Phone (07) 36 54078 University of Qld
jacksu@sara.atmos.uiuc.edu (Jack Su) (01/24/91)
Hi all, I would like to thank everyone that replied. The solution is indeed simple, and I was an idiot. By default, OpenWindow only enables xhost for localhost. A quick check of the startup script for our old X11R4/XView shows 'xhost +'. As many of you have suggested this indeed solved the problem. The xhost command may also be placed in the user's .openwin-init. Alternatively a host access table may be created in /etc/X*.hosts where * is the display number. Thanks to everyone that responded. Jack Su