From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,101d61e032f3c07c X-Google-Attributes: gid103734,public X-Google-Thread: 10b612,101d61e032f3c07c X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,101d61e032f3c07c X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-01-12 16:07:44 PST Xref: gmd.de comp.windows.x:29899 comp.sys.dec:12841 comp.unix.ultrix:12501 Newsgroups: comp.windows.x,comp.sys.dec,comp.unix.ultrix Path: gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!coil!news-reader.nist.gov!przemek From: przemek@rrdbartok.nist.gov (Przemek Klosowski) Subject: Re: XDM doesn't start mwm when using MIT-MAGIC-COOKIE-1 access control In-Reply-To: pjt@pelab.allied.com's message of 7 Jan 94 07:19:25 MST Message-ID: Sender: news@nist.gov Organization: U. of Maryland/NIST References: <1994Jan7.071926.134@vaxb.phx1.aro.allied.com> Date: Wed, 12 Jan 1994 20:32:46 GMT In article <1994Jan7.071926.134@vaxb.phx1.aro.allied.com> pjt@pelab.allied.com (Philip J. Tait) writes: Environment: DECstation 5000/200CX, RISC Ultrix 4,.3 (X11R4) and Motif 1.1.2 Prompted by a Tcl/Tk upgrade, we changed from using xhost authorisation to MIT-MAGIC-COOKIE-1. Method (gleaned from Tcl FAQ and O'Reilly Vol. 8): My situation exactly. Did you change /usr/lib/X11/xdm/Xsession to run your window manager? Mine is enclosed at the end; note the trick with ( ) wait, to prevent creation of zombies. Other than that, xdm should create the initial ~/.Xauthority file, and you are responsible for propagating it to other hosts that you want to access your display from. Note that Ultrix 4.2 did not have MIT-COOKIE method compiled into X libraries, so that 4.2 clients could not access server running this authorization method. VMS is plain out of the question, although I do manage to open windows from VMS systems, by doing explicit xhost +VMSHOST (on my machine) running the program (on VMS) xhost -VMSHOST i.e., xhost and xauth are not mutually exclusive, although Tk will check to make sure that xhost does not allow any hosts. przemek klosowski (przemek@rrdstrad.nist.gov) Reactor Division (bldg. 235), E111 National Institute of Standards and Technology Gaithersburg, MD 20899, USA (301) 975 6249 tel (301) 921 9847 fax #!/bin/sh5 # # Xsession # # This is the program that is run as the client # for the display manager. This example is # quite friendly as it attempts to run a per-user # .xsession file instead of forcing a particular # session layout # # If there's error in ~/.xsession, type F1 in the login window; the default # translations will cause this file be called with an argument "failsafe" case $# in 1) case $1 in failsafe) exec xterm -geometry 80x24-0-0 -ls ;; esac esac # If normal authentication, will end up here (no extra parameters) startup=$HOME/.xsession resources=$HOME/.Xresources if [ -f $startup ]; then # exec $startup exec /bin/sh $startup else # execute children in background, wait for all ( if [ -f $resources ]; then xrdb -load $resources else resources=/usr/lib/X11/xdm/.Xresources if [ -f $resources ]; then xrdb -load $resources fi fi /usr/bin/X11/mwm & sleep 1; /usr/bin/X11/xmodmap -e "keycode 10 = Escape" & sleep 1; /usr/bin/X11/xinfo -geometry 570x555+400-0 -iconic -fn 8x13 & ) & wait $! # "login" xterm with smooth scrolling and scroll bars, # font for Xterms comes from resources, set in ./.Xresources exec xterm -geometry 80x24+10+10 -ls +j -sb fi -- przemek klosowski (przemek@rrdstrad.nist.gov) Reactor Division (bldg. 235), E111 National Institute of Standards and Technology Gaithersburg, MD 20899, USA (301) 975 6249 tel (301) 921 9847 fax