Bug 1363

Summary: telnetd does not write utmp/wtmp log out records
Product: Busybox Reporter: Stephen Hemminger <stephen.hemminger>
Component: NetworkingAssignee: unassigned
Status: CLOSED FIXED    
Severity: major CC: busybox-cvs
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Stephen Hemminger 2010-03-18 23:41:10 UTC
The telnetd daemon needs to write utmp and wtmp records when user logs out.
There is no code to do this in the current daemon.
The impact of this is that if user logs in over telnet, (and logs out),
she can't be deleted (because userdel looks at utmp records).
Writing correct utmp/wtmp helps with overall accounting.


The functions logout() and logwtmp() provide the necessary hooks, but
they are under -lutil in glibc.
Comment 1 Denys Vlasenko 2010-04-05 20:12:23 UTC
Fixed in git, please test it.
Comment 2 Stephen Hemminger 2010-04-23 22:52:29 UTC
Validated on our development ISO.