[Bug 345] w (uptime) command still indicates user is logged in after logout

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Jul 22 23:39:11 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=345





------- Additional Comments From Lutz.Jaenicke at aet.TU-Cottbus.DE  2002-07-22 23:39 -------
More inputs:
The problem appears only with privilege separation enabled, it does not appear
without privsep.
I have added some debugging information and it seems, that the difference
between privsep and not is, that without privsep the utmp(x) modifications are
performed by 2 processes: the login is performed by the process being the child
(later becoming the shell) while the logout is handled by the sshd process. With
privsep enabled, both login and logout are handled by the same sshd process
(thus pututxline() is called from the same process).
I don't know, in how far this influences the process, as the pututxline()
function is not open source. Maybe some state information is incorrectly
handled, such that the second pututxline() process does handle /etc/utmpx but
then has a problem with the /etc/utmp update. This is however just a guess until
 know.

For what it seems to me now, it is more a problem that is caused by HP-UX than a
problem of OpenSSH.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list