Subject: xdm issues
To: netbsd-macppc <port-macppc@NetBSD.ORG>
From: Riccardo Mottola <rollei@tiscalinet.it>
List: port-macppc
Date: 11/18/2004 22:53:16
Hey,

I try to get XDM running. I enabled it in rc.conf

in my user account, I get this

more .xsession-errors
Xlib: connection to ":0.0" refused by server
Xlib: Protocol not supported by server

twm:  unable to open display ":0"

and I have the following .xsession file

cat .xsession
#!/bin/sh
exec twm

if I try to login as root, where I have no .xsession file, I get the
following int e .xsession-errors file:

Xlib: connection to ":0.0" refused by server
Xlib: Protocol not supported by server

Error: Can't open display: :0

if I add the same .xsession file as I have as a user, I get also the
same error.

I found this on the net:
X11 is capable of using a number of ways to permit users to connect to
it.
Your problem is probably caused because the server and the client run
with
different user IDs.


and hmm, our X server is setuid. but still, ti should work as root at
least! also I tried butting "xhost +" inside the .xsession, but no help.

Thanks for your patience,
  R