* XDM doesn't start mwm when using MIT-MAGIC-COOKIE-1 access control
@ 1994-01-07 14:19 Philip J. Tait
1994-01-12 20:32 ` Przemek Klosowski
0 siblings, 1 reply; 2+ messages in thread
From: Philip J. Tait @ 1994-01-07 14:19 UTC (permalink / raw)
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):
rm /etc/X0.hosts
for i in `xhost`; do xhost -$i; done
and edit xdm-config
<DisplayManager*authorize: false
>DisplayManager*authorize: true
This worked fine, until the system rebooted after the nightly backup. mwm
(invoked in Xsession) would not run:
xdm-errors:
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
mwm: Could not open display.
But I could execute mwm from my login xterm.
Any advice or RTFMs welcome.
--
Philip J. Tait AlliedSignal Engines, Phoenix, Az +1 602 231 7104
GED::B12635 pjt@pelab.allied.com tait@venus.research.allied.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: XDM doesn't start mwm when using MIT-MAGIC-COOKIE-1 access control
1994-01-07 14:19 XDM doesn't start mwm when using MIT-MAGIC-COOKIE-1 access control Philip J. Tait
@ 1994-01-12 20:32 ` Przemek Klosowski
0 siblings, 0 replies; 2+ messages in thread
From: Przemek Klosowski @ 1994-01-12 20:32 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-01-12 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-07 14:19 XDM doesn't start mwm when using MIT-MAGIC-COOKIE-1 access control Philip J. Tait
1994-01-12 20:32 ` Przemek Klosowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox