home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / openloo / 3639 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  2.7 KB

  1. Path: sparky!uunet!gatech!europa.asd.contel.com!emory!athena.cs.uga.edu!weinri
  2. From: weinri@athena.cs.uga.edu (Kevin Weinrich)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Remote client works in X11, not NeWS - auth problem?
  5. Message-ID: <1992Aug28.175756.5674@athena.cs.uga.edu>
  6. Date: 28 Aug 92 17:57:56 GMT
  7. Organization: University of Georgia, Athens
  8. Lines: 68
  9.  
  10. I have a problem that I *think* is an XNeWS authorization problem.
  11. I'm hoping someone has seen this before.
  12.  
  13. The .Xauthority file that *both* /usr/bin/X11/Xsun and 
  14. $OPENWINHOME/bin/xnews like, won't let me run xauth on it.  When I do:
  15.   xauth extract - $DISPLAY
  16. it responds:
  17.   No matches found, authority file "-" not written
  18. (which means I can't permit any other machines to display on my local
  19. machine, which is the source of my problem).
  20.  
  21. If I run xauth, it responds:
  22.   Using authority file /home/kbw/.Xauthority
  23.   xauth>
  24. I type:
  25.   list
  26. it responds:
  27.   #ffff##:  MIT-MAGIC-COOKIE-1  debf8cd. . .
  28. That first field looks mangled (it should say something about helios),
  29. but the servers seem to accept it.
  30.  
  31. I have another authority file that I don't remember how I cobbled
  32. together, which works with Xsun, but not xnews, and behaves
  33. properly with xauth.  In xauth it lists:
  34.   helios.ath.epa.gov:0  MIT-MAGIC-COOKIE-1  debf8cd. . .
  35.   helios/unix:0  MIT-MAGIC-COOKIE-1  debf8cd. . .
  36.   hermes/unix:0  MIT-MAGIC-COOKIE-1  14bdb20. . .
  37. Note that the hexkeys in *both* .Xauthority files are the same!  So
  38. why won't the second one work for xnews and/or why won't the first
  39. one let me pass its xauth information to another machine?
  40.  
  41. I'm running X11R5 and OpenWindows 2.0 on two Sun SPARC boxes running
  42. OS 4.1 and 4.1.1, respectively.  Here follows my startup script
  43. with a few comments:
  44.  
  45.  
  46. #! /bin/sh
  47. # @(#)openwin 23.25 90/06/19
  48.  
  49. # environment variables that this shell script sets/changes:
  50. export DISPLAY FONTPATH FRAMEBUFFER HELPPATH LD_LIBRARY_PATH
  51. export MANPATH NEWSSERVER OPENWINHOME PATH XAPPLRESDIR
  52.  
  53. DISPLAY=":0"
  54.  
  55. # default FRAMEBUFFER is /dev/fb if not in the environment.
  56. FRAMEBUFFER=${FRAMEBUFFER-"/dev/fb"}
  57.  
  58. # Derive the $NEWSSERVER variable from the digit in $DISPLAY
  59. newsport=`expr "$DISPLAY" : '.*:\([0-9][0-9]*\)' + 2000`
  60. NEWSSERVER=`$OPENWINHOME/bin/newsserverstr $newsport`
  61.  
  62. FONTPATH=$OPENWINHOME/lib/fonts:/usr/lib/X11/fonts
  63. HELPPATH=$OPENWINHOME/lib/help
  64.  
  65.  
  66. XAPPLRESDIR=$OPENWINHOME/lib/X11/app-defaults
  67.  
  68. # confirm framebuffer configuration
  69.     $OPENWINHOME/bin/xn_ck_fbs
  70.  
  71. # start up xinit and thus the server.
  72. # The following line will let xauth work properly, but of course I
  73. # can't run, e.g., pageview
  74. # $OPENWINHOME/bin/xinit -- /usr/bin/X11/Xsun $DISPLAY -auth $HOME/.Xauthority
  75. $OPENWINHOME/bin/xinit -- $OPENWINHOME/bin/xnews $DISPLAY -auth $HOME/.Xauthority
  76.  
  77. exit 0
  78.