LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 05-28-2006, 07:22 PM   #1
forgox
LQ Newbie
 
Registered: Jul 2004
Posts: 27

Rep: Reputation: 15
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.

The system is using Xorg, KDE 3.5, Linux 2.6.15

any help would be appreciated.
thanks

Last edited by forgox; 05-28-2006 at 07:55 PM.
 
Old 05-30-2006, 02:00 PM   #2
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
Check out ¨man pts(4)¨

Bob
 
Old 05-30-2006, 06:36 PM   #3
forgox
LQ Newbie
 
Registered: Jul 2004
Posts: 27

Original Poster
Rep: Reputation: 15
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 :-(

I.e.;
$ ls -l /dev/pts
total 0
crw--w---- 1 bozo tty 136, 0 2006-05-30 18:29 0
crw------- 1 bozo tty 136, 1 2006-05-30 18:32 1
crw------- 1 bozo tty 136, 2 2006-05-30 18:32 2

Did you had any specific thing to check about PTS when you suggested man pts(4)?

thanks in advance
 
Old 05-31-2006, 05:21 AM   #4
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
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.

Sorry I couldn´t be more help.

Bob
 
  


Reply

Tags
debian, etch, kdm, lastlog, logged, user, who


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GNU Screen Error: Could Not Write /var/run/utmp: No such process DarkElf109 Linux - Software 3 06-10-2006 03:13 AM
Computer incorrectly reports number of logged in users phil.d.g Linux - General 5 10-22-2005 05:09 AM
How to prevent KDM from displaying the last user logged in smithtodda Suse/Novell 4 05-23-2005 08:57 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 09:34 PM
People logged in through kdm don't show up in utmp Tinkster Slackware 4 03-31-2003 02:40 PM


All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration