FS#489 - /var/run/utmp not correctly updated with kernel 2.6.3
Attached to Project:
Arch Linux
Opened by Andreas Weggel (andreasw) - Friday, 27 February 2004, 19:14 GMT
Last edited by Judd Vinet (judd) - Friday, 27 February 2004, 19:45 GMT
Opened by Andreas Weggel (andreasw) - Friday, 27 February 2004, 19:14 GMT
Last edited by Judd Vinet (judd) - Friday, 27 February 2004, 19:45 GMT
|
Details
the file /var/run/utmp is not updated correctly when a user
is logging out.
If you log in with a user and than logout (maybe try more times, it sometimes shows this behavior at once), the user is still in the /var/run/utmp databases, so programs like who, finger, userdel will not work correct. I noticed that bug while trying to delete a user which was not logged on, but deluser telled me it was. So I executed who and it showed the user, but the users wasn't logged in. In order to solve that problem I tried a lot of things, finally I succeeded with using the 2.4.25 kernel instead of the 2.6.3 kernel. But I don't know the exact context |
This task depends upon
first, i think the problem isnt really on the /var/run/utmp, i believe that its correct because the command "w" show correctly who is logged in, and its based on /var/run/utmp, i´ve also noted that who belongs to coreutils and w to procps, so i believe the problem is in coreutils, maybe it need to be recompiled in a 2.6 kernel to work ? dont know.
i have a gentoo machine running kernel 2.6.3 and who works fine, so i think its not a kernel problem.
good luck :)
first, i think the problem isnt really on the /var/run/utmp, i believe that its correct because the command "w" show correctly who is logged in, and its based on /var/run/utmp, i´ve also noted that who belongs to coreutils and w to procps, so i believe the problem is in coreutils, maybe it need to be recompiled in a 2.6 kernel to work ? dont know.
i have a gentoo machine running kernel 2.6.3 and who works fine, so i think its not a kernel problem.
good luck :)
but w uses ps to display the processes which are ran by the users and because the users who are incorrectly displayed don't have any processes it only shows the processes of the really logged in users.
So it is an /var/run/utmp problem which for me only occurs while using the 2.6.3 kernel (didn't test any previous version of 2.6.)
Andy
i used the default kernel26.
now im really confused.
good luck guys.
I will try building a custom kernel which only contains stuff I need and try it again.
I will also try it on my laptop.
I've noticed that runlevel /var/run/utmp fails at certain times, at I think this is why.