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


Changes: 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).


Changes: 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.


Changes: 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.


Changes: This release will print the list of all users logged in and out with session length in '--list' mode. All gcc warnings when compiling with the '-pedantic' and '-ansi' flags enabled have been fixed.


Changes: Fixes were made to compile and run on AIX (and possibly other non-Linux POSIX-compliant operating systems).