who reports no user logged in /var/run/utmp when using kdm (Etch)
On Debian Etch up to date, the "who" command reports no user logged in when logging in from KDM. Seems like who reads file /var/run/utmp to find out who's logged. When using GDM, "who" reports user logged in in :0 but none using pts/N even with many konsole open on screen.
Logging in using text console (CTRL-ALT-F1) seems to log user in /var/run/utmp fine, "who" reports the logged in user from the console but none from the GUI.
Investigation of potential error messages in /var/log/kdm.log, /var/log/messages, /var/log/Xorg.0.log didn't help.
It seems that kdm uses "sessreg" command to record logged in user /var/run/utmp.
Investigation shoed that /etc/kde3/kdm/Xstartup which is supposed launch sessreg can't launch it because it's not in the path. Adding "echo $PATH" in /etc/kde3/kdm/Xstartup you see the PATH being; /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
but sessreg command is located in /usr/bin/X11/sessreg. Creating the softlink;
"ln -s /usr/bin/X11/sessreg /usr/bin/sessreg" fixed kdm to record user logged in on :0 but still no user was reported using pts/N even with many konsole open on screen.
Therefore, it seems there is some broken PATH in some Etch scripts. Adding a softlink above is not the solution.
The system is using Xorg, KDE 3.5, Linux 2.6.15
any help would be appreciated.
Last edited by forgox; 05-28-2006 at 06:55 PM.