[comp.windows.x] Session errors with xdm

BEAMISHD%ccvax.ucd.ie@mitvma.mit.EDU (05/31/91)

I am getting the following error when I run xdm from root on the console of a
Sun Sparcstation 2 running X11R4. I would be grateful if someone could suggest
a way to avoid this. I have listed what I think are all the relevant details.
                                        I would also like to know where is the
best place to run xdm from so it is set up automatically on boot.

error (pid 167): Session execution failed /usr/lib/X11/xdm/Xsession

these are the files in the xdm directory

total 8
-rwxr-xr-x  1 root           12 May 29 20:19 Xreset.sun
-rw-r--r--  1 root          364 May 29 15:34 Xresources
-rw-r--r--  1 root           33 May 29 15:23 Xservers
-rwxr-xr-x  1 root          964 May 29 17:24 Xsession
-rwxr-xr-x  1 root          228 May 29 15:25 Xstartup
-rw-r--r--  1 root          513 May 30 10:17 xdm-config
-rw-r--r--  1 root          204 May 31 09:51 xdm-errors
-rw-r--r--  1 root            4 May 30 13:56 xdm-pid

These are the contents of the files:

Xreset.sun:
          kbd_mode -a

Xresources:
          xlogin*login.translations: #override\
               <Key>F1: set-session-argument(failsafe) finish-field()\n\
               <Key>Return: set-session-argument() finish-field()
          xlogin*borderWidth: 3
          xlogin*greetColor: #f63
          xlogin*failColor: red
          xlogin*Foreground: black
          xlogin*Background: #fdc
          #endif

Xservers:
:0 Local local /usr/bin/X11/X :0

Xsession:
          #!/bin/sh
          #
          # 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
          #

          case $# in
          1)
               case $1 in
               failsafe)
                    exec xterm -geometry 80x24-0-0 -ls
                    ;;
               esac
          esac

          startup=$HOME/.xsession
          resources=$HOME/.Xresources

        if [ -f $startup ]; then
           if [ -x $startup ]; then
                exec $startup
           else
                exec /bin/sh $startup
           fi
          else
               if [ -f $resources ]; then
                    xrdb -load $resources
               fi
               twm &
               exec xterm -geometry 80x24+10+10 -ls
          fi

Xstartup:
          #!/bin/sh
          #
          # Xstartup
          #
          # This program is run as root after the user is verified
          #
          if [ -f /etc/nologin ]; then
               exit 1
          fi
          exit 0
          #
          # Xstartup
          #
          # This program is run as root after the user is verified
          #
          if [ -f /etc/nologin ]; then
               exit 1
          fi
          exit 0

xdm-config:
          DisplayManager.servers:            /usr/lib/X11/xdm/Xservers
          DisplayManager.errorLogFile:       /usr/lib/X11/xdm/xdm-errors
          DisplayManager.pidFile:            /usr/lib/X11/xdm/xdm-pid
          DisplayManager*resources:          /usr/lib/X11/xdm/Xresources
          DisplayManager*session:            /usr/lib/X11/xdm/Xsession
          DisplayManager._0.authorize:       true
          DisplayManager*authorize:          false
          DisplayManager._0.reset:           /usr/lib/X11/xdm/Xreset.sun

xdm-errors:
error (pid 136): Session execution failed /usr/lib/X11/xdm/Xsession
error (pid 304): Session execution failed /usr/lib/X11/xdm/Xsession
error (pid 371): Session execution failed /usr/lib/X11/xdm/Xsession

xdm-pid:
129
                                    Norman Beamish
                                    Dept. of Electrical & Electronic Engineering
                                    University College, Dublin
                                    Belfield, Dublin 4
                                    Ireland
NBEAME91@irlearn.bitnet
NBEAME91@irlearn.ucd.ie
beamishd@ccvax.bitnet
beamishd@ccvax.ucd.ie
Voice +353-1-2693244 Ext.1964
Fax   +353-1-2830921