wtmpclean is a tool for Unix (currently tested on Linux and AIX) which lets users with sufficient privileges dump wtmp databases and patch or delete wtmp records that log a user or that were created at a given date and time.
Release Notes: Adds support for regular expressions in the editing mode.
Release Notes: When a login is terminated by a system halt or reboot, this release prints 'down' as the logout time. It will correctly display login times with negative values.
Release Notes: The cleaning of the wtmp records no longer leaves any trace, even in the raw output. The listing of user logins was improved.
Release Notes: The raw ('--raw') output was highly improved. The whole wtmp database is dumped if no user is specified. An error code of 1 is returned if the editing of the wtmp file fails. Unknown fake users are not accepted when patching the wtmp file. Timestamps are always preserved when editing the wtmp file (the '--preserve' option has been removed).
Release Notes: Now it's possible to replace a user logged at a given time or in all the records of the wtmp database with another one.