Thanks all who helped with my earlier problem. It turned out a visitor had decided to make my system safer from me by changing /etc/opt/kde3/share/config/kdm/kdmrc to not allow root login in KDE. All is now OK.