who reports no user logged in /var/run/utmp when using kdm (Etch)
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
who reports no user logged in /var/run/utmp when using kdm (Etch)
Hi,
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.
Hi,
Thanks for the info. The PTSs seems to be created properly. Listing them in /dev you can the number of PTS changing depending on how many terminal is opened. The WHO command and W command still reports no user logged in :-(
No, but I googled for a problem with you symptoms in several places, and they all referred to this man page as a solution. I have to admit that your particular problem is baffling. It doesn´nt seems to follow convention for PATHS. Hopefully, someone will know the answer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.