Debian Codegraph @

liblastlog2/man/lastlog2.3

raw
1 '\" t
2 .\" Title: lastlog2
3 .\" Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.20
5 .\" Date: 2026-04-28
6 .\" Manual: Programmer's Manual
7 .\" Source: util-linux 2.42.1
8 .\" Language: English
9 .\"
10 .TH "LASTLOG2" "3" "2026-04-28" "util\-linux 2.42.1" "Programmer\*(Aqs Manual"
11 .ie \n(.g .ds Aq \(aq
12 .el .ds Aq '
13 .ss \n[.ss] 0
14 .nh
15 .ad l
16 .de URL
17 \fI\\$2\fP <\\$1>\\$3
18 ..
19 .als MTO URL
20 .if \n[.g] \{\
21 . mso www.tmac
22 . am URL
23 . ad l
24 . .
25 . am MTO
26 . ad l
27 . .
28 . LINKSTYLE blue R < >
29 .\}
30 .SH "NAME"
31 lastlog2 \- Y2038 safe version of lastlog library.
32 .SH "SYNOPSIS"
33 .sp
34 \fB#include <lastlog2.h>\fP
35 .SH "DESCRIPTION"
36 .sp
37 \fBlastlog2\fP reports the last login of a given user or of all users who did ever login on a system.
38 .sp
39 It\(cqs using sqlite3 as database backend. Data is only collected via a PAM module, so that all
40 tools can make use of it, without modifying existing packages.
41 The output is as compatible as possible with the old lastlog implementation.
42 By default the database will be written as \fI/var/lib/lastlog/lastlog2.db\fP.
43 The size of the database depends on the amount of users, not how big the biggest UID is.
44 .SH "AUTHORS"
45 .sp
46 .MTO "kukuk\(atsuse.de" "Thorsten Kukuk" ""
47 .SH "SEE ALSO"
48 .sp
49 \fBlastlog2\fP(3),
50 \fBll2_new_context\fP(3),
51 \fBll2_unref_context\fP(3),
52 \fBll2_write_entry\fP(3),
53 \fBll2_read_all\fP(3),
54 \fBll2_read_entry\fP(3),
55 \fBll2_update_login_time\fP(3),
56 \fBll2_remove_entry\fP(3),
57 \fBll2_rename_user\fP(3),
58 \fBll2_import_lastlog\fP(3)
59 .SH "REPORTING BUGS"
60 .sp
61 For bug reports, use the \c
62 .URL "https://github.com/util\-linux/util\-linux/issues" "issue tracker" "."
63 .SH "AVAILABILITY"
64 .sp
65 The \fBliblastlog2\fP library is part of the util\-linux package since version 2.40. It can be downloaded from \c
66 .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."