XDM Login Broken
Kurt Wall
kwall
Mon May 17 11:29:35 PDT 2004
Scribbling feverishly on April 07, Bill Campbell managed to emit:
> 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.
I saw your Step on this. I don't want to seem stubborn or
unappreciative for your help, but:
1) I don't have an xserverrc. Admittedly, this *may* be part of the
problem, and I foolishly didn't save the working configuration
before installing 4.1.0 and, now, 4.2.0.
2) Your Step mentions this in connection with fixing startx from the
console so that it works. My problem is that startx from the
console works fine, but XDM doesn't -- the reverse of the problem
described in your Step
3) I don't have Xwrapper, so your xserverrc won't work
4) It may not be terribly relevant, but I'm not running Caldera's
Linux anymore -- I'm running Slackware.
Naytheless, I'll give this a whirl, sans the Xwrapper line. I may
just roll back to the X distributed with Slackware and work forward
from there, but I'd really rather figure this out so I can write up a
Step on it (well, so I can know how the damn thing works *and* write
up a Step on it).
> ----- begin xserverrc -----
> #!/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
> ----- end xserverrc -----
Thanks and blessed be,
Kurt
--
You display the wonderful traits of charm and courtesy.
More information about the Linux-users
mailing list