Subject: xsrc/30597: gdm-2.2.0nb7 cannot login, xserver resets and dumps back at login
To: None <xsrc-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <rudihl@gmx.de>
List: netbsd-bugs
Date: 06/25/2005 11:06:00
>Number:         30597
>Category:       xsrc
>Synopsis:       gdm-2.2.0nb7 cannot login, xserver resets and dumps back at login
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 25 11:06:00 +0000 2005
>Originator:     Rudi
>Release:        2.0.2 i386
>Organization:
-private-
>Environment:
NetBSD steinlaus 2.99.15 NetBSD 2.99.15 (STEINLAUS) #1: Mon Mar  7 19:47:28 CET 2005  root@steinlaus:/mnt/netbsd-current/src/sys/arch/i386/compile/STEINLAUS i386
>Description:

Installed gdm-2.2.0nb7 as graphical login. xdm is already working. But I prefer the first one to enable non-root users to shutdown the machine correctly.

After installation I copied  <everything>.default  to <everything> in
/usr/pkg/etc/gdm

but actually login in with an xsession fails. After giving the correct password for a user that previously worked flawlessly with xdm the xserver just restarts and gives the login-screnn again.
>How-To-Repeat:

>Fix:
gdm tries to execute Xsession (if you chose Xsession which is the only one I have installed)

---- /usr/pkg/etc/gdm/Sessions/Xsession 
#! /bin/sh
exec /usr/X11R6/lib/X11/xdm/Xsession $@
----

but /usr/X11R6/lib/X11/xdm/Xsession is only
readable (-r--r--r--) from the default installation.

chmod ugo+x /usr/X11R6/lib/X11/xdm/Xsession

fixed the problem.