From 29a98911d9cb5e9187c1afe4e161c6861fac4f2b Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Thu, 1 Jun 2006 19:56:22 +0000 Subject: Relevant BUGIDs: Purpose of commit: new feature Commit summary: --------------- 2006-06-01 Thorsten Kukuk * modules/pam_lastlog/Makefile.am: Include Make.xml.rules. * modules/pam_lastlog/pam_lastlog.8.xml: New. * modules/pam_lastlog/pam_lastlog.8: New, generated from xml file. * modules/pam_lastlog/README.xml: New. * modules/pam_lastlog/README: Regenerated from xml file. --- modules/pam_lastlog/Makefile.am | 12 +- modules/pam_lastlog/README | 67 +++++++--- modules/pam_lastlog/README.xml | 41 ++++++ modules/pam_lastlog/pam_lastlog.8 | 85 +++++++++++++ modules/pam_lastlog/pam_lastlog.8.xml | 233 ++++++++++++++++++++++++++++++++++ 5 files changed, 417 insertions(+), 21 deletions(-) create mode 100644 modules/pam_lastlog/README.xml create mode 100644 modules/pam_lastlog/pam_lastlog.8 create mode 100644 modules/pam_lastlog/pam_lastlog.8.xml (limited to 'modules') diff --git a/modules/pam_lastlog/Makefile.am b/modules/pam_lastlog/Makefile.am index 73ee4be6..e81e7833 100644 --- a/modules/pam_lastlog/Makefile.am +++ b/modules/pam_lastlog/Makefile.am @@ -7,7 +7,10 @@ CLEANFILES = *~ securelibdir = $(SECUREDIR) secureconfdir = $(SCONFIGDIR) -EXTRA_DIST = README tst-pam_lastlog +EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_lastlog + +man_MANS = pam_lastlog.8 +XMLS = README.xml pam_lastlog.8.xml TESTS = tst-pam_lastlog @@ -19,3 +22,10 @@ if HAVE_VERSIONING endif securelib_LTLIBRARIES = pam_lastlog.la + +if ENABLE_REGENERATE_MAN +noinst_DATA = README +README: pam_lastlog.8.xml +-include $(top_srcdir)/Make.xml.rules +endif + diff --git a/modules/pam_lastlog/README b/modules/pam_lastlog/README index 0adc118b..9f6c5505 100644 --- a/modules/pam_lastlog/README +++ b/modules/pam_lastlog/README @@ -1,30 +1,57 @@ -pam_lastlogin: The last login module +pam_lastlog — PAM module to display date of last login -This module can be used as session entry to provide a `Last login on ...' -message. When the user logs into the system from what ever application -uses the PAM libraries. In addition, the module maintains the -/var/log/lastlog file and the wtmp entry. +━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +DESCRIPTION -The behavior of this module can be modified with one of the following -flags: +pam_lastlog is a PAM module to display a line of information about the last +login of the user. In addition, the module maintains the /var/log/lastlog file. - * debug - write more information to syslog(3). +Some applications may perform this function themselves. In such cases, this +module is not necessary. - * nodate - neglect to give the date of the last login when displaying - information about the last login on the system. +OPTIONS - * noterm - neglect to diplay the terminal name on which the last - login was attempt. +debug - * nohost - neglect to indicate from which host the last login was - attempted. + Print debug information. - * silent - neglect to inform the user about any previous login: - just update the /var/log/lastlog file. +silent - * never - if the /var/log/lastlog file does not contain any old - entries for the user, indicate that the user has never - previously logged in with a ``welcome..." message. + Don't inform the user about any previous login, just upate the /var/log/ + lastlog file. + +never + + If the /var/log/lastlog file does not contain any old entries for the user, + indicate that the user has never previously logged in with a welcome + message. + +nodate + + Don't display the date of the last login. + +noterm + + Don't display the terminal name on which the last login was attempted. + +nohost + + Don't indicate from which host the last login was attempted. + +nowtmp + + Don't update the wtmp entry. + +EXAMPLES + +Add the following line to /etc/pam.d/login to display the last login time of an +user: + + session required pam_lastlog.so nowtmp + + +AUTHOR + +pam_lastlog was written by Andrew G. Morgan . - * nowtmp - Don't update the wtmp entry. diff --git a/modules/pam_lastlog/README.xml b/modules/pam_lastlog/README.xml new file mode 100644 index 00000000..7fe70339 --- /dev/null +++ b/modules/pam_lastlog/README.xml @@ -0,0 +1,41 @@ + + +--> +]> + +
+ + + + + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="pam_lastlog.8.xml" xpointer='xpointer(//refnamediv[@id = "pam_lastlog-name"]/*)'/> + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
diff --git a/modules/pam_lastlog/pam_lastlog.8 b/modules/pam_lastlog/pam_lastlog.8 new file mode 100644 index 00000000..407f1961 --- /dev/null +++ b/modules/pam_lastlog/pam_lastlog.8 @@ -0,0 +1,85 @@ +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "PAM_LASTLOG" "8" "06/01/2006" "Linux\-PAM Manual" "Linux\-PAM Manual" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +pam_lastlog \- PAM module to display date of last login +.SH "SYNOPSIS" +.HP 15 +\fBpam_lastlog.so\fR [debug] [silent] [never] [nodate] [nohost] [noterm] [nowtmp] +.SH "DESCRIPTION" +.PP +pam_lastlog is a PAM module to display a line of information about the last login of the user. In addition, the module maintains the +\fI/var/log/lastlog\fR +file. +.PP +Some applications may perform this function themselves. In such cases, this module is not necessary. +.SH "OPTIONS" +.TP +\fBdebug\fR +Print debug information. +.TP +\fBsilent\fR +Don't inform the user about any previous login, just upate the +\fI/var/log/lastlog\fR +file. +.TP +\fBnever\fR +If the +\fI/var/log/lastlog\fR +file does not contain any old entries for the user, indicate that the user has never previously logged in with a welcome message. +.TP +\fBnodate\fR +Don't display the date of the last login. +.TP +\fBnoterm\fR +Don't display the terminal name on which the last login was attempted. +.TP +\fBnohost\fR +Don't indicate from which host the last login was attempted. +.TP +\fBnowtmp\fR +Don't update the wtmp entry. +.SH "MODULE SERVICES PROVIDED" +.PP +Only the +\fBsession\fR +service is supported. +.SH "RETURN VALUES" +.PP +.TP +PAM_SUCCESS +Everything was successfull. +.TP +PAM_SERVICE_ERR +Internal service module error. +.TP +PAM_USER_UNKNOWN +User not known. +.SH "EXAMPLES" +.PP +Add the following line to +\fI/etc/pam.d/login\fR +to display the last login time of an user: +.sp +.nf + session required pam_lastlog.so nowtmp + +.fi +.SH "FILES" +.TP +\fI/var/log/lastlog\fR +Lastlog logging file +.SH "SEE ALSO" +.PP +\fBpam.conf\fR(5), +\fBpam.d\fR(8), +\fBpam\fR(8) +.SH "AUTHOR" +.PP +pam_lastlog was written by Andrew G. Morgan . diff --git a/modules/pam_lastlog/pam_lastlog.8.xml b/modules/pam_lastlog/pam_lastlog.8.xml new file mode 100644 index 00000000..fa97b03e --- /dev/null +++ b/modules/pam_lastlog/pam_lastlog.8.xml @@ -0,0 +1,233 @@ + + + + + + + pam_lastlog + 8 + Linux-PAM Manual + + + + pam_lastlog + PAM module to display date of last login + + + + + pam_lastlog.so + + debug + + + silent + + + never + + + nodate + + + nohost + + + noterm + + + nowtmp + + + + + + + DESCRIPTION + + + pam_lastlog is a PAM module to display a line of information + about the last login of the user. In addition, the module maintains + the /var/log/lastlog file. + + + Some applications may perform this function themselves. In such + cases, this module is not necessary. + + + + + + OPTIONS + + + + + + + + Print debug information. + + + + + + + + + + Don't inform the user about any previous login, + just upate the /var/log/lastlog file. + + + + + + + + + + If the /var/log/lastlog file does + not contain any old entries for the user, indicate that + the user has never previously logged in with a welcome + message. + + + + + + + + + + Don't display the date of the last login. + + + + + + + + + + Don't display the terminal name on which the + last login was attempted. + + + + + + + + + + Don't indicate from which host the last login was + attempted. + + + + + + + + + + Don't update the wtmp entry. + + + + + + + + MODULE SERVICES PROVIDED + + Only the service is supported. + + + + + RETURN VALUES + + + + + PAM_SUCCESS + + + Everything was successfull. + + + + + + PAM_SERVICE_ERR + + + Internal service module error. + + + + + + PAM_USER_UNKNOWN + + + User not known. + + + + + + + + + + EXAMPLES + + Add the following line to /etc/pam.d/login to + display the last login time of an user: + + + session required pam_lastlog.so nowtmp + + + + + FILES + + + /var/log/lastlog + + Lastlog logging file + + + + + + + SEE ALSO + + + pam.conf5 + , + + pam.d8 + , + + pam8 + + + + + + AUTHOR + + pam_lastlog was written by Andrew G. Morgan <morgan@kernel.org>. + + + + + -- cgit v1.2.3