xref: /freebsd/lib/libpam/modules/pam_lastlog/pam_lastlog.8 (revision 6e1fc0118033f42b7c0d3623c8f67a89ebecabb2)
116e058b5SDag-Erling Smørgrav.\" Copyright (c) 2001 Mark R V Murray
216e058b5SDag-Erling Smørgrav.\" All rights reserved.
3f03a4b81SDag-Erling Smørgrav.\" Copyright (c) 2001 Networks Associates Technology, Inc.
416e058b5SDag-Erling Smørgrav.\" All rights reserved.
516e058b5SDag-Erling Smørgrav.\"
616e058b5SDag-Erling Smørgrav.\" Portions of this software were developed for the FreeBSD Project by
716e058b5SDag-Erling Smørgrav.\" ThinkSec AS and NAI Labs, the Security Research Division of Network
816e058b5SDag-Erling Smørgrav.\" Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
916e058b5SDag-Erling Smørgrav.\" ("CBOSS"), as part of the DARPA CHATS research program.
1016e058b5SDag-Erling Smørgrav.\"
1116e058b5SDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
1216e058b5SDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
1316e058b5SDag-Erling Smørgrav.\" are met:
1416e058b5SDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
1516e058b5SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
1616e058b5SDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
1716e058b5SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
1816e058b5SDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
1916e058b5SDag-Erling Smørgrav.\" 3. The name of the author may not be used to endorse or promote
2016e058b5SDag-Erling Smørgrav.\"    products derived from this software without specific prior written
2116e058b5SDag-Erling Smørgrav.\"    permission.
2216e058b5SDag-Erling Smørgrav.\"
2316e058b5SDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
2416e058b5SDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2516e058b5SDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2616e058b5SDag-Erling Smørgrav.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2716e058b5SDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2816e058b5SDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2916e058b5SDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3016e058b5SDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3116e058b5SDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3216e058b5SDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3316e058b5SDag-Erling Smørgrav.\" SUCH DAMAGE.
3416e058b5SDag-Erling Smørgrav.\"
35eae8be70SEitan Adler.Dd January 21, 2010
3616e058b5SDag-Erling Smørgrav.Dt PAM_LASTLOG 8
3716e058b5SDag-Erling Smørgrav.Os
3816e058b5SDag-Erling Smørgrav.Sh NAME
3916e058b5SDag-Erling Smørgrav.Nm pam_lastlog
4016e058b5SDag-Erling Smørgrav.Nd login accounting PAM module
4116e058b5SDag-Erling Smørgrav.Sh SYNOPSIS
4216e058b5SDag-Erling Smørgrav.Op Ar service-name
4316e058b5SDag-Erling Smørgrav.Ar module-type
4416e058b5SDag-Erling Smørgrav.Ar control-flag
4516e058b5SDag-Erling Smørgrav.Pa pam_lastlog
4616e058b5SDag-Erling Smørgrav.Op Ar options
4716e058b5SDag-Erling Smørgrav.Sh DESCRIPTION
4816e058b5SDag-Erling SmørgravThe login accounting service module for PAM,
4916e058b5SDag-Erling Smørgrav.Nm
5016e058b5SDag-Erling Smørgravprovides functionality for only one PAM category:
5116e058b5SDag-Erling Smørgravsession management.
5216e058b5SDag-Erling SmørgravIn terms of the
5316e058b5SDag-Erling Smørgrav.Ar module-type
5416e058b5SDag-Erling Smørgravparameter, this is the
5516e058b5SDag-Erling Smørgrav.Dq Li session
5616e058b5SDag-Erling Smørgravfeature.
5716e058b5SDag-Erling Smørgrav.Ss Login Accounting Session Management Module
5816e058b5SDag-Erling SmørgravThe login accounting session management component provides functions
5916e058b5SDag-Erling Smørgravto initiate
6016e058b5SDag-Erling Smørgrav.Pq Fn pam_sm_open_session
6116e058b5SDag-Erling Smørgravand terminate
6216e058b5SDag-Erling Smørgrav.Pq Fn pam_sm_close_session
6316e058b5SDag-Erling Smørgravsessions.
6416e058b5SDag-Erling SmørgravThe
6516e058b5SDag-Erling Smørgrav.Fn pam_sm_open_session
660806dd92SEd Schoutenfunction records the session in the user accounting database.
6716e058b5SDag-Erling SmørgravThe
6816e058b5SDag-Erling Smørgrav.Fn pam_sm_close_session
699201dc40SDag-Erling Smørgravfunction does nothing.
7089136eabSDag-Erling Smørgrav.Pp
7189136eabSDag-Erling SmørgravThe following options may be passed to the authentication module:
7289136eabSDag-Erling Smørgrav.Bl -tag -width ".Cm no_warn"
7389136eabSDag-Erling Smørgrav.It Cm debug
7489136eabSDag-Erling Smørgrav.Xr syslog 3
7589136eabSDag-Erling Smørgravdebugging information at
7689136eabSDag-Erling Smørgrav.Dv LOG_DEBUG
7789136eabSDag-Erling Smørgravlevel.
7889136eabSDag-Erling Smørgrav.It Cm no_warn
7989136eabSDag-Erling Smørgravsuppress warning messages to the user.
8089136eabSDag-Erling Smørgrav.It Cm no_fail
8189136eabSDag-Erling SmørgravIgnore I/O failures.
8289136eabSDag-Erling Smørgrav.El
8316e058b5SDag-Erling Smørgrav.Sh SEE ALSO
8416e058b5SDag-Erling Smørgrav.Xr last 1 ,
858ce66223SRuslan Ermilov.Xr w 1 ,
860806dd92SEd Schouten.Xr getutxent 3 ,
87*6e1fc011SGraham Percival.Xr pam 3 ,
8859a1db5bSJens Schweikhardt.Xr ulog_login 3 ,
8959a1db5bSJens Schweikhardt.Xr ulog_logout 3 ,
9016e058b5SDag-Erling Smørgrav.Xr pam.conf 5 ,
91*6e1fc011SGraham Percival.Xr lastlogin 8
9216e058b5SDag-Erling Smørgrav.Sh AUTHORS
9316e058b5SDag-Erling SmørgravThe
9416e058b5SDag-Erling Smørgrav.Nm
9516e058b5SDag-Erling Smørgravmodule and this manual page were developed for the FreeBSD Project by
9616e058b5SDag-Erling SmørgravThinkSec AS and NAI Labs, the Security Research Division of Network
971a0a9345SRuslan ErmilovAssociates, Inc.\& under DARPA/SPAWAR contract N66001-01-C-8035
9816e058b5SDag-Erling Smørgrav.Pq Dq CBOSS ,
9916e058b5SDag-Erling Smørgravas part of the DARPA CHATS research program.
100