[plug] bash 2 & xdm

John Summerfield summer at os2.ami.com.au
Sat Aug 1 06:42:08 WST 1998


I installed bash 2 from an RPM on my RH 5.0 system and now when I login
via xdm the screen flashes and returns to xdm.

It seems likely that something someplace isn't recognising that I'm
logging in so bash terminates and effectively logs me out.

There is absolutely nothing odd in xdm-error.log.
.xsession-errors contains:
[summer at emu summer]$ cat .xsession-errors
/etc/X11/xdm/Xsession: freetemp: command not found
/etc/X11/xinit/Xclients: exec: twm: not found
/etc/X11/xinit/Xclients: xterm: command not found

The environment contains:
[summer at emu summer]$ cat xxEnv
BASH=/bin/bash
BASH_VERSINFO=([0]="2" [1]="02" [2]="1" [3]="1" [4]="release"
[5]="i686-pc-linux-gnu")
BASH_VERSION='2.02.1(1)-release'
DIRSTACK=()
DISPLAY=:0
EUID=500
GROUPS=()
HOME=/home/summer
HOSTNAME=emu.my.ami.com.au
HOSTTYPE=i686
IFS=' 
'
LOGNAME=summer
MACHTYPE=i686-pc-linux-gnu
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/bin:/bin:/usr/bin
PPID=1234
PS4='+ '
PWD=/work/home/summer
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
TERM=dumb
UID=500
USER=summer
_=bash


Note that PATH is wrong (should be
/usr/bin:/bin:/usr/X11R6/bin:/home/summer/bin after all processing) and
TERM should probably be TERM=xterm

I have found bash being invoked with the -login switch and changed that to
--login (bash 2 wants two hyphens) here:
[summer at emu summer]$  head /etc/X11/xdm/Xsession
#!/bin/bash --login

login from the text screen and running startx works fine.

Any clues?




like my sig!!





More information about the plug mailing list