The /etc/profile file is not being sourced at login in XDM.
Add the following entry in /usr/lib/X11/xdm/Xsession to source /etc/profile
if [ -r $HOME/.profile ]; then .$HOME/.profile fi
[ Doc Ref: 97248716421200 Publish Date: Nov. 20, 2000 4FAX Ref: none ]