xref: /dflybsd-src/lib/libpam/modules/pam_lastlog/pam_lastlog.8 (revision 902a69a203a37bc7865d8d8154e3cd1265771aca)
1242be47eSzrj.\" Copyright (c) 2001 Mark R V Murray
2242be47eSzrj.\" All rights reserved.
3242be47eSzrj.\" Copyright (c) 2001 Networks Associates Technology, Inc.
4242be47eSzrj.\" All rights reserved.
5242be47eSzrj.\"
6242be47eSzrj.\" Portions of this software were developed for the FreeBSD Project by
7242be47eSzrj.\" ThinkSec AS and NAI Labs, the Security Research Division of Network
8242be47eSzrj.\" Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
9242be47eSzrj.\" ("CBOSS"), as part of the DARPA CHATS research program.
10242be47eSzrj.\"
11242be47eSzrj.\" Redistribution and use in source and binary forms, with or without
12242be47eSzrj.\" modification, are permitted provided that the following conditions
13242be47eSzrj.\" are met:
14242be47eSzrj.\" 1. Redistributions of source code must retain the above copyright
15242be47eSzrj.\"    notice, this list of conditions and the following disclaimer.
16242be47eSzrj.\" 2. Redistributions in binary form must reproduce the above copyright
17242be47eSzrj.\"    notice, this list of conditions and the following disclaimer in the
18242be47eSzrj.\"    documentation and/or other materials provided with the distribution.
19242be47eSzrj.\" 3. The name of the author may not be used to endorse or promote
20242be47eSzrj.\"    products derived from this software without specific prior written
21242be47eSzrj.\"    permission.
22242be47eSzrj.\"
23242be47eSzrj.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24242be47eSzrj.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25242be47eSzrj.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26242be47eSzrj.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27242be47eSzrj.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28242be47eSzrj.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29242be47eSzrj.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30242be47eSzrj.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31242be47eSzrj.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32242be47eSzrj.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33242be47eSzrj.\" SUCH DAMAGE.
34242be47eSzrj.\"
35c98db407SSascha Wildner.\" $FreeBSD: head/lib/libpam/modules/pam_lastlog/pam_lastlog.8 240506 2012-09-14 17:50:42Z eadler $
36242be47eSzrj.\"
37*902a69a2SSascha Wildner.Dd September 13, 2019
38242be47eSzrj.Dt PAM_LASTLOG 8
39242be47eSzrj.Os
40242be47eSzrj.Sh NAME
41242be47eSzrj.Nm pam_lastlog
42242be47eSzrj.Nd login accounting PAM module
43242be47eSzrj.Sh SYNOPSIS
44242be47eSzrj.Op Ar service-name
45242be47eSzrj.Ar module-type
46242be47eSzrj.Ar control-flag
47242be47eSzrj.Pa pam_lastlog
48242be47eSzrj.Op Ar options
49242be47eSzrj.Sh DESCRIPTION
50242be47eSzrjThe login accounting service module for PAM,
51242be47eSzrj.Nm
52242be47eSzrjprovides functionality for only one PAM category:
53242be47eSzrjsession management.
54242be47eSzrjIn terms of the
55242be47eSzrj.Ar module-type
56242be47eSzrjparameter, this is the
57242be47eSzrj.Dq Li session
58242be47eSzrjfeature.
59242be47eSzrj.Ss Login Accounting Session Management Module
60242be47eSzrjThe login accounting session management component provides functions
61242be47eSzrjto initiate
62242be47eSzrj.Pq Fn pam_sm_open_session
63242be47eSzrjand terminate
64242be47eSzrj.Pq Fn pam_sm_close_session
65242be47eSzrjsessions.
66242be47eSzrjThe
67242be47eSzrj.Fn pam_sm_open_session
68c98db407SSascha Wildnerfunction records the session in the user accounting database.
69242be47eSzrjThe
70242be47eSzrj.Fn pam_sm_close_session
71242be47eSzrjfunction does nothing.
72242be47eSzrj.Pp
73242be47eSzrjThe following options may be passed to the authentication module:
74242be47eSzrj.Bl -tag -width ".Cm no_warn"
75242be47eSzrj.It Cm debug
76242be47eSzrj.Xr syslog 3
77242be47eSzrjdebugging information at
78242be47eSzrj.Dv LOG_DEBUG
79242be47eSzrjlevel.
80242be47eSzrj.It Cm no_warn
81242be47eSzrjsuppress warning messages to the user.
82242be47eSzrj.It Cm no_fail
83242be47eSzrjIgnore I/O failures.
84242be47eSzrj.El
85242be47eSzrj.Sh SEE ALSO
86242be47eSzrj.Xr last 1 ,
87242be47eSzrj.Xr w 1 ,
88c98db407SSascha Wildner.Xr getutxent 3 ,
89*902a69a2SSascha Wildner.Xr loginx 3 ,
90*902a69a2SSascha Wildner.Xr logoutx 3 ,
91dfc0c85aSSascha Wildner.Xr pam 3 ,
92242be47eSzrj.Xr pam.conf 5 ,
9325606b42SSascha Wildner.Xr utmpx 5 ,
94dfc0c85aSSascha Wildner.Xr lastlogin 8
95242be47eSzrj.Sh AUTHORS
96242be47eSzrjThe
97242be47eSzrj.Nm
98242be47eSzrjmodule and this manual page were developed for the
99242be47eSzrj.Fx
100242be47eSzrjProject by
101242be47eSzrjThinkSec AS and NAI Labs, the Security Research Division of Network
102242be47eSzrjAssociates, Inc.\& under DARPA/SPAWAR contract N66001-01-C-8035
103242be47eSzrj.Pq Dq CBOSS ,
104242be47eSzrjas part of the DARPA CHATS research program.
105