diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:33:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:33:32 +0000 |
commit | 8bb05ac73a5b448b339ce0bc8d396c82c459b47f (patch) | |
tree | 1fdda006866bca20d41cb206767ea5241e36852f /pam_lastlog2/man | |
parent | Adding debian version 2.39.3-11. (diff) | |
download | util-linux-8bb05ac73a5b448b339ce0bc8d396c82c459b47f.tar.xz util-linux-8bb05ac73a5b448b339ce0bc8d396c82c459b47f.zip |
Merging upstream version 2.40.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pam_lastlog2/man')
-rw-r--r-- | pam_lastlog2/man/Makemodule.am | 6 | ||||
-rw-r--r-- | pam_lastlog2/man/pam_lastlog2.8 | 107 | ||||
-rw-r--r-- | pam_lastlog2/man/pam_lastlog2.8.adoc | 78 |
3 files changed, 191 insertions, 0 deletions
diff --git a/pam_lastlog2/man/Makemodule.am b/pam_lastlog2/man/Makemodule.am new file mode 100644 index 0000000..3f19ea1 --- /dev/null +++ b/pam_lastlog2/man/Makemodule.am @@ -0,0 +1,6 @@ + +MANPAGES += \ + pam_lastlog2/man/pam_lastlog2.8 + +dist_noinst_DATA += \ + pam_lastlog2/man/pam_lastlog2.8.adoc diff --git a/pam_lastlog2/man/pam_lastlog2.8 b/pam_lastlog2/man/pam_lastlog2.8 new file mode 100644 index 0000000..99fd2f5 --- /dev/null +++ b/pam_lastlog2/man/pam_lastlog2.8 @@ -0,0 +1,107 @@ +'\" t +.\" Title: pam_lastlog2 +.\" Author: [see the "AUTHOR(S)" section] +.\" Generator: Asciidoctor 2.0.20 +.\" Date: 2024-03-20 +.\" Manual: System Administration +.\" Source: util-linux 2.40 +.\" Language: English +.\" +.TH "PAM_LASTLOG2" "8" "2024-03-20" "util\-linux 2.40" "System Administration" +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.ss \n[.ss] 0 +.nh +.ad l +.de URL +\fI\\$2\fP <\\$1>\\$3 +.. +.als MTO URL +.if \n[.g] \{\ +. mso www.tmac +. am URL +. ad l +. . +. am MTO +. ad l +. . +. LINKSTYLE blue R < > +.\} +.SH "NAME" +pam_lastlog2 \- PAM module to display date of last login +.SH "SYNOPSIS" +.sp +\fBpam_lastlog2.so\fP [debug] [silent] [silent_if=<services>] [database=<file>] +.SH "DESCRIPTION" +.sp +pam_lastlog2 is a PAM module to display a line of information about the last login of the user. The module uses the /var/lib/lastlog/lastlog2.db database file to store all informations. +.sp +Compared to pam_lastlog this PAM module is Y2038 safe and uses sqlite3 to store the information. +.SH "OPTIONS" +.sp +\fBdebug\fP +.RS 4 +Print debug information. +.RE +.sp +\fBsilent\fP +.RS 4 +Avoid all messages except errors and don\(cqt inform the user about any previous login, only update the /var/lib/lastlog/lastlog2.db database. +.RE +.sp +\fBsilent_if=<services>\fP +.RS 4 +The argument \fBservices\fP is a comma separated list of PAM services. If a service is listed here, the last login message will not be shown. +.RE +.sp +\fBdatabase=<file>\fP +.RS 4 +Use \fBfile\fP instead of /var/lib/lastlog/lastlog2.db. +.RE +.SH "MODULE TYPES PROVIDED" +.sp +The \fBsession\fP module type is provided for displaying the information about the last login and updating the lastlog file. +.SH "RETURN VALUES" +.sp +\fBPAM_SUCCESS\fP +.RS 4 +Everything was successful. +.RE +.sp +\fBPAM_SERVICE_ERR\fP +.RS 4 +Internal service module error. This includes error reading from or writing to the database. +.RE +.sp +\fBPAM_USER_UNKNOWN\fP +.RS 4 +User not known. +.RE +.sp +\fBPAM_IGNORE\fP +.RS 4 +Returned by service types which do nothing. +.RE +.SH "EXAMPLES" +.sp +Add the following line to e.g. /etc/pam.d/login to display the last login time of a user: +.sp +session optional pam_lastlog2.so silent_if=gdm,gdm\-password +.sp +It is up to the administrator to decide if the user can login (optional/required) when +pam_lastlog2 has returned an error. +.SH "AUTHOR" +.sp +pam_lastlog2 was written by Thorsten Kukuk \c +.MTO "kukuk\(atsuse.com" "" "." +.SH "SEE ALSO" +.sp +\fBliblastlog2\fP(3), \fBpam.conf\fP(5), \fBpam.d\fP(5), \fBpam\fP(8) +.SH "REPORTING BUGS" +.sp +For bug reports, use the issue tracker at \c +.URL "https://github.com/util\-linux/util\-linux/issues" "" "." +.SH "AVAILABILITY" +.sp +The \fBpam_lastlog2\fP library is part of the util\-linux package since version 2.40. It can be downloaded from \c +.URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."
\ No newline at end of file diff --git a/pam_lastlog2/man/pam_lastlog2.8.adoc b/pam_lastlog2/man/pam_lastlog2.8.adoc new file mode 100644 index 0000000..1ed5ba6 --- /dev/null +++ b/pam_lastlog2/man/pam_lastlog2.8.adoc @@ -0,0 +1,78 @@ +//po4a: entry man manual += pam_lastlog2(8) +:doctype: manpage +:man manual: System Administration +:man source: util-linux {release-version} +:lib: pam_lastlog2 +:firstversion: 2.40 +:page-layout: base + +== NAME + +pam_lastlog2 - PAM module to display date of last login + +== SYNOPSIS + +*pam_lastlog2.so* [debug] [silent] [silent_if=<services>] [database=<file>] + +== DESCRIPTION + +pam_lastlog2 is a PAM module to display a line of information about the last login of the user. The module uses the /var/lib/lastlog/lastlog2.db database file to store all informations. + +Compared to pam_lastlog this PAM module is Y2038 safe and uses sqlite3 to store the information. + +== OPTIONS + +*debug*:: +Print debug information. + +*silent*:: +Avoid all messages except errors and don't inform the user about any previous login, only update the /var/lib/lastlog/lastlog2.db database. + +*silent_if=<services>*:: +The argument *services* is a comma separated list of PAM services. If a service is listed here, the last login message will not be shown. + +*database=<file>*:: +Use *file* instead of /var/lib/lastlog/lastlog2.db. + +== MODULE TYPES PROVIDED + +The *session* module type is provided for displaying the information about the last login and updating the lastlog file. + +== RETURN VALUES + +*PAM_SUCCESS*:: +Everything was successful. + +*PAM_SERVICE_ERR*:: +Internal service module error. This includes error reading from or writing to the database. + +*PAM_USER_UNKNOWN*:: +User not known. + +*PAM_IGNORE*:: +Returned by service types which do nothing. + +== EXAMPLES +Add the following line to e.g. /etc/pam.d/login to display the last login time of a user: + +session optional pam_lastlog2.so silent_if=gdm,gdm-password + +It is up to the administrator to decide if the user can login (optional/required) when +pam_lastlog2 has returned an error. + +== AUTHOR + +pam_lastlog2 was written by Thorsten Kukuk <kukuk@suse.com>. + +== SEE ALSO + +*liblastlog2*(3), *pam.conf*(5), *pam.d*(5), *pam*(8) + +include::man-common/bugreports.adoc[] + +include::man-common/footer-lib.adoc[] + +ifdef::translation[] +include::man-common/translation.adoc[] +endif::[] |