Bug 1363 - telnetd does not write utmp/wtmp log out records
Summary: telnetd does not write utmp/wtmp log out records
Status: CLOSED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: PC Linux
: P3 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-18 23:41 UTC by Stephen Hemminger
Modified: 2010-04-23 22:52 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.