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.
| Tags | Utilities Security |
|---|---|
| Licenses | GPLv3 |
| Operating Systems | POSIX |
| Implementation | C |
Recent releases


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.


Release Notes: A new '-t'/'--time' option was added for deleting a login occurring at a given time. The list of the logins is now printed in the format used by the 'last' command.