From owner-freebsd-questions Fri Sep 13 12:37:47 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA11655 for questions-outgoing; Fri, 13 Sep 1996 12:37:47 -0700 (PDT) Received: from jack.Colorado.EDU (jack.Colorado.EDU [128.138.149.29]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA11647 for ; Fri, 13 Sep 1996 12:37:44 -0700 (PDT) Received: from jack (localhost [127.0.0.1]) by jack.Colorado.EDU (8.7.5/8.7.3/CNS-4.0p) with SMTP id NAA12023; Fri, 13 Sep 1996 13:37:34 -0600 (MDT) Message-ID: <3239B7FE.B3B@Colorado.EDU> Date: Fri, 13 Sep 1996 13:37:34 -0600 From: "Mark O'Lear" Organization: University of Colorado X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.4 sun4m) MIME-Version: 1.0 To: Robert Eckardt CC: questions@freebsd.org Subject: Re: 'Invalid MIT-MAGIC-COOKIE-1 key' on 2.1.5 References: <199609131437.QAA14230@gluon.mep.ruhr-uni-bochum.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Robert Eckardt wrote: > > Hello, > > I hope someone can help/explain the following problem/behaviour: > Since I upgraded (complete new install) my machine beta to 2.1.5-R > MIT-MAGIC-COOKIE-1 doesn't work any longer. > > The situation: > > The Xserver runs on beta and I added a cookie: > > xauth> add beta:0 MIT-MAGIC-COOKIE-1 1234567890abcdef1234567890abcdef > xauth> list > beta.mep.ruhr-uni-bochum.de:0 MIT-MAGIC-COOKIE-1 1234567890abcdef1234567890abcdef > xauth> exit > 16:22 beta: /home/roberte 0% echo $DISPLAY > :0.0 > 16:22 beta: /home/roberte 0% xhost > access control enabled, only authorized clients can connect > INET:beta.mep.ruhr-uni-bochum.de > INET:localhost > LOCAL: > > > > Now I try to connect from gluon: > > 16:22 gluon: /u/roberte 0% echo $DISPLAY > beta.mep.ruhr-uni-bochum.de:0 > 16:22 gluon: /u/roberte 1% xhost > Xlib: connection to "beta.mep.ruhr-uni-bochum.de:0.0" refused by server > Xlib: Invalid MIT-MAGIC-COOKIE-1 key > xhost: unable to open display "beta.mep.ruhr-uni-bochum.de:0" > > I tried recompiling the kernel, but no luck. > > 16:22 beta: /home/roberte 0% uname -a > FreeBSD beta 2.1.5-RELEASE FreeBSD 2.1.5-RELEASE #0: Fri Sep 13 13:56:13 MET DST 1996 root@beta.mep.ruhr-uni-bochum.de:/usr/src/sys/compile/BETA1 i386 > 16:22 gluon: /u/roberte 1% uname -a > FreeBSD gluon 2.1.0-RELEASE FreeBSD 2.1.0-RELEASE #0: Thu May 30 04:28:04 MET DST 1996 root@gluon:/usr/src/sys/compile/GLUON1 i386 > > Note, I'm running YP/NIS, with both machines bound to gluon. > I also tried different DISPLAY vars, but to no avail. > It used to work with 2.1.0-R. > All machines use MD5 PWs. > The r* programs work fine with beta.mep.ruhr-uni-bochum.de in .rhosts > > What else can I check ? > > Thanx, > Robert > > -- > Robert Eckardt ( > Ruhr-Universitaet Bochum, Inst.f.Theor.Physik, NB6/169 ) > Universitaetsstrasse 150, D-44780 Bochum, Germany ----X---8---- > Telefon: +49 234 700-3709, Telefax: +49 234 7094-574 8 > E-Mail: RobertE@MEP.Ruhr-Uni-Bochum.de --------8---- > URL: http://WWW.MEP.Ruhr-Uni-Bochum.de/~roberte > >>> To be successful one needs friends, <<< > >>> To be very successful one needs enemies. <<< I bet you aren't running xdm. If you run xdm, it sets up the xauth authorization automatically for you. If you don't, you will need to tell the X server what authentication to use (I believe that xhost is used by default). I have never done this (I always run xdm), but the following man pages mention this (using the -auth flag): Xsecurity(1), Xserver(1). Hope this helps. -- Mark O'Lear \ e-mail: Mark.Olear@Colorado.EDU University of Colorado \ phone: (303) 492-3798 Telecomm. Svcs. (CB 313) \ fax: (303) 492-5105 Boulder, CO 80309 \