XDM Login Broken

Bill Campbell bill
Mon May 17 11:29:34 PDT 2004


On Sat, Apr 06, 2002 at 09:41:32PM -0500, Kurt Wall wrote:
>Okay, so I upgraded XFree and now I can't login using XDM (spare me
>the use KDM/GDM, please). I login without incident, the screen clears
>as if getting ready to start my session, and then I'm back at the
>login window. This happens for root and mortal users. I can use startx just
>fine, as root and as mere mortal.
>
>>From /var/log/xdm-errors:
>AUDIT: Sat Apr  6 20:32:44 2002: 587 X: client 2 rejected from local host
>
>>From $HOME/.xsession-errors:
>Xlib: connection to ":0.0" refused by server
>Xlib: Client is not authorized to connect to Server
>Error: Can't open display: :0
>
>Obviously, it's an authorization problem, but I'm not sure where to
>look. System is Slackware 8.0 with considerable modifications. X is
>4.1.0, kernel is 2.4.18 (although I doubt this matters). I have a
>newly compiled XFree86 4.2.0 ready to go when I sort this out.

Actually it's a problem with the DISPLAY variable.  For some
reason which I've never been able to understand, starting X
sometimes wants to use DISPLAY=:0.0 which isn't allowed by the
default configuration.  The attached xserverrc from one of our
Caldera systems has one extra line after the ``done'' statement
to make it work.  This file, /etc/X11/xinit/xserverrc, is not
defined by default in Caldera 3.1* systems, and requires some
fiddling of other startup scripts to have them recognize it.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``Liberals love to say things like, 'We're just asking everyone to pay
their fair share.' But government is not about asking. It is about telling.
The difference is fundamental. It is the difference between making love and
being raped, between working for a living and being a slave.''
    Dr. Thomas Sowell, Forbes, July 1994
-------------- next part --------------
#!/bin/bash

XAUTH=$HOME/.Xauthority
MKCOOKIE=/usr/bin/mcookie

touch $XAUTH

for host in localhost $HOSTNAME $HOST; do
    xauth add $host/unix:0 . `$MKCOOKIE`
    xauth add $host:0 . `$MKCOOKIE`
done
xauth add :0.0 . `$MKCOOKIE`

exec Xwrapper -auth $XAUTH :0


More information about the Linux-users mailing list