wtmpdb last -x -n20root pts/0 Sat Apr 5 05:09 - still logged in
Package: wtmpdb
Version: 0.72.0-1
Severity: normal
Dear Maintainer,
here an `last -x` example output
```
wtmpdb last -x -n20root pts/0 Sat Apr 5 05:09 - still logged in dirk tty7 :0 Sat Apr 5 05:05 - still logged in lightdm tty7 :0 Sat Apr 5 05:04 - 05:05 (00:00) reboot system boot 6.12.20-amd64 Sat Apr 5 05:04 - still running
root pts/4 Sat Apr 5 04:16 - 04:16 (00:00)
[...]
lightdm tty7 :0 Sat Apr 5 01:27 - 01:27 (00:00) reboot system boot 6.12.20-amd64 Sat Apr 5 01:27 - 05:01 (03:33) shutdown system down 6.12.20-amd64 Sat Apr 5 05:01 - 05:04 (00:03)
root pts/0 Sat Apr 5 01:26 - 01:26 (00:00)
wtmpdb begins Sat Apr 5 01:26:34 2025
```
Here are 3 issues:
1. Whishlist: For the first column it should be renamed
shutdown -> [shutdown] or <shutdown>
reboot -> [reboot] or <reboot>
to make clear that these are builtin tokens, and not real
usernames.
2. The [shutdown] in the example above was from
[shutdown] 05:01 - 05:04, followed by a
[reboot] at 05:04 - still running
but this [shutdown] was ordered before
[reboot] at 01:27 - 05:01
which make less sense. The output of example above should look like
root pts/0 Sat Apr 5 05:09 - still logged in
dirk tty7 :0 Sat Apr 5 05:05 - still logged in
lightdm tty7 :0 Sat Apr 5 05:04 - 05:05 (00:00)
reboot system boot 6.12.20-amd64 Sat Apr 5 05:04 - still running
shutdown system down 6.12.20-amd64 Sat Apr 5 05:01 - 05:04 (00:03)
root pts/4 Sat Apr 5 04:16 - 04:16 (00:00)
[...]
lightdm tty7 :0 Sat Apr 5 01:27 - 01:27 (00:00)
reboot system boot 6.12.20-amd64 Sat Apr 5 01:27 - 05:01 (03:33)
new> <older shutdown> Sat Apr 5 01:26 - 01:27 (00:00)
root pts/0 Sat Apr 5 01:26 - 01:26 (00:00)
3. With respect to bug #1102101 (subtract 1h)
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102101
the following command should output at least one [shutdown] line
$> last -x -s '2025-04-05 03:00:00'
root pts/0 Sat Apr 5 05:09 - still logged in
dirk tty7 :0 Sat Apr 5 05:05 - still logged in
lightdm tty7 :0 Sat Apr 5 05:04 - 05:05 (00:00)
reboot system boot 6.12.20-amd64 Sat Apr 5 05:04 - still running
root pts/4 Sat Apr 5 04:16 - 04:16 (00:00)
wtmpdb begins Fri Apr 4 19:01:21 2025
the `[shutdown] 05:01 - 05:04 (00:03)` is missing.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 481 |
Nodes: | 16 (2 / 14) |
Uptime: | 08:22:26 |
Calls: | 9,538 |
Calls today: | 6 |
Files: | 13,653 |
Messages: | 6,139,030 |
Posted today: | 1 |