home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!europa.asd.contel.com!emory!athena.cs.uga.edu!weinri
- From: weinri@athena.cs.uga.edu (Kevin Weinrich)
- Newsgroups: comp.windows.open-look
- Subject: Remote client works in X11, not NeWS - auth problem?
- Message-ID: <1992Aug28.175756.5674@athena.cs.uga.edu>
- Date: 28 Aug 92 17:57:56 GMT
- Organization: University of Georgia, Athens
- Lines: 68
-
- I have a problem that I *think* is an XNeWS authorization problem.
- I'm hoping someone has seen this before.
-
- The .Xauthority file that *both* /usr/bin/X11/Xsun and
- $OPENWINHOME/bin/xnews like, won't let me run xauth on it. When I do:
- xauth extract - $DISPLAY
- it responds:
- No matches found, authority file "-" not written
- (which means I can't permit any other machines to display on my local
- machine, which is the source of my problem).
-
- If I run xauth, it responds:
- Using authority file /home/kbw/.Xauthority
- xauth>
- I type:
- list
- it responds:
- #ffff##: MIT-MAGIC-COOKIE-1 debf8cd. . .
- That first field looks mangled (it should say something about helios),
- but the servers seem to accept it.
-
- I have another authority file that I don't remember how I cobbled
- together, which works with Xsun, but not xnews, and behaves
- properly with xauth. In xauth it lists:
- helios.ath.epa.gov:0 MIT-MAGIC-COOKIE-1 debf8cd. . .
- helios/unix:0 MIT-MAGIC-COOKIE-1 debf8cd. . .
- hermes/unix:0 MIT-MAGIC-COOKIE-1 14bdb20. . .
- Note that the hexkeys in *both* .Xauthority files are the same! So
- why won't the second one work for xnews and/or why won't the first
- one let me pass its xauth information to another machine?
-
- I'm running X11R5 and OpenWindows 2.0 on two Sun SPARC boxes running
- OS 4.1 and 4.1.1, respectively. Here follows my startup script
- with a few comments:
-
-
- #! /bin/sh
- # @(#)openwin 23.25 90/06/19
-
- # environment variables that this shell script sets/changes:
- export DISPLAY FONTPATH FRAMEBUFFER HELPPATH LD_LIBRARY_PATH
- export MANPATH NEWSSERVER OPENWINHOME PATH XAPPLRESDIR
-
- DISPLAY=":0"
-
- # default FRAMEBUFFER is /dev/fb if not in the environment.
- FRAMEBUFFER=${FRAMEBUFFER-"/dev/fb"}
-
- # Derive the $NEWSSERVER variable from the digit in $DISPLAY
- newsport=`expr "$DISPLAY" : '.*:\([0-9][0-9]*\)' + 2000`
- NEWSSERVER=`$OPENWINHOME/bin/newsserverstr $newsport`
-
- FONTPATH=$OPENWINHOME/lib/fonts:/usr/lib/X11/fonts
- HELPPATH=$OPENWINHOME/lib/help
-
-
- XAPPLRESDIR=$OPENWINHOME/lib/X11/app-defaults
-
- # confirm framebuffer configuration
- $OPENWINHOME/bin/xn_ck_fbs
-
- # start up xinit and thus the server.
- # The following line will let xauth work properly, but of course I
- # can't run, e.g., pageview
- # $OPENWINHOME/bin/xinit -- /usr/bin/X11/Xsun $DISPLAY -auth $HOME/.Xauthority
- $OPENWINHOME/bin/xinit -- $OPENWINHOME/bin/xnews $DISPLAY -auth $HOME/.Xauthority
-
- exit 0
-