xref: /freebsd/lib/libpam/modules/pam_login_access/pam_login_access.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
153f3167dSDag-Erling Smørgrav.\" Copyright (c) 2001 Mark R V Murray
253f3167dSDag-Erling Smørgrav.\" All rights reserved.
3f03a4b81SDag-Erling Smørgrav.\" Copyright (c) 2001 Networks Associates Technology, Inc.
453f3167dSDag-Erling Smørgrav.\" All rights reserved.
553f3167dSDag-Erling Smørgrav.\"
653f3167dSDag-Erling Smørgrav.\" Portions of this software were developed for the FreeBSD Project by
753f3167dSDag-Erling Smørgrav.\" ThinkSec AS and NAI Labs, the Security Research Division of Network
853f3167dSDag-Erling Smørgrav.\" Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
953f3167dSDag-Erling Smørgrav.\" ("CBOSS"), as part of the DARPA CHATS research program.
1053f3167dSDag-Erling Smørgrav.\"
1153f3167dSDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
1253f3167dSDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
1353f3167dSDag-Erling Smørgrav.\" are met:
1453f3167dSDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
1553f3167dSDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
1653f3167dSDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
1753f3167dSDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
1853f3167dSDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
1953f3167dSDag-Erling Smørgrav.\" 3. The name of the author may not be used to endorse or promote
2053f3167dSDag-Erling Smørgrav.\"    products derived from this software without specific prior written
2153f3167dSDag-Erling Smørgrav.\"    permission.
2253f3167dSDag-Erling Smørgrav.\"
2353f3167dSDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
2453f3167dSDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2553f3167dSDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2653f3167dSDag-Erling Smørgrav.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2753f3167dSDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2853f3167dSDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2953f3167dSDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3053f3167dSDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3153f3167dSDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3253f3167dSDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3353f3167dSDag-Erling Smørgrav.\" SUCH DAMAGE.
3453f3167dSDag-Erling Smørgrav.\"
35*e8c4b9d4SCy Schubert.Dd January 30, 2020
3653f3167dSDag-Erling Smørgrav.Dt PAM_LOGIN_ACCESS 8
3753f3167dSDag-Erling Smørgrav.Os
3853f3167dSDag-Erling Smørgrav.Sh NAME
3953f3167dSDag-Erling Smørgrav.Nm pam_login_access
40c2d5249eSDag-Erling Smørgrav.Nd login.access PAM module
4153f3167dSDag-Erling Smørgrav.Sh SYNOPSIS
4253f3167dSDag-Erling Smørgrav.Op Ar service-name
4353f3167dSDag-Erling Smørgrav.Ar module-type
4453f3167dSDag-Erling Smørgrav.Ar control-flag
4553f3167dSDag-Erling Smørgrav.Pa pam_login_access
4653f3167dSDag-Erling Smørgrav.Op Ar options
4753f3167dSDag-Erling Smørgrav.Sh DESCRIPTION
4853f3167dSDag-Erling SmørgravThe
4953f3167dSDag-Erling Smørgrav.Pa login.access
50c2d5249eSDag-Erling Smørgravservice module for PAM,
5153f3167dSDag-Erling Smørgrav.Nm
5253f3167dSDag-Erling Smørgravprovides functionality for only one PAM category:
5353f3167dSDag-Erling Smørgravaccount management.
5453f3167dSDag-Erling SmørgravIn terms of the
5553f3167dSDag-Erling Smørgrav.Ar module-type
5653f3167dSDag-Erling Smørgravparameter, this is the
5753f3167dSDag-Erling Smørgrav.Dq Li account
5853f3167dSDag-Erling Smørgravfeature.
5953f3167dSDag-Erling Smørgrav.Ss Login.access Account Management Module
6053f3167dSDag-Erling SmørgravThe
6153f3167dSDag-Erling Smørgrav.Pa login.access
6253f3167dSDag-Erling Smørgravaccount management component
6353f3167dSDag-Erling Smørgrav.Pq Fn pam_sm_acct_mgmt ,
64b6b2be6fSRuslan Ermilovreturns success if and only the user is allowed to login on the
6553f3167dSDag-Erling Smørgravspecified tty (in the case of a local login) or from the specified
6653f3167dSDag-Erling Smørgravremote host (in the case of a remote login), according to the
6753f3167dSDag-Erling Smørgravrestrictions listed in
684df7b351SYaroslav Tykhiy.Xr login.access 5 .
69*e8c4b9d4SCy Schubert.Bl -tag -width ".Cm accessfile=pathname"
70*e8c4b9d4SCy Schubert.It Cm accessfile Ns = Ns Ar pathname
71*e8c4b9d4SCy Schubertspecifies a non-standard location for the
72*e8c4b9d4SCy Schubert.Pa login.access
73*e8c4b9d4SCy Schubertconfiguration file
74*e8c4b9d4SCy Schubert(normally located in
75*e8c4b9d4SCy Schubert.Pa /etc/login.access ) .
76*e8c4b9d4SCy Schubert.It Cm nodefgroup
77*e8c4b9d4SCy Schubertmakes tokens not enclosed in parentheses only match users, requiring groups
78*e8c4b9d4SCy Schubertto be specified in parentheses.
79*e8c4b9d4SCy SchubertWithout
80*e8c4b9d4SCy Schubert.Cm nodefgroup
81*e8c4b9d4SCy Schubertuser and group names are intermingled, with user entries taking precedence
82*e8c4b9d4SCy Schubertover group entries.
83*e8c4b9d4SCy SchubertThis is not backwards compatible with legacy
84*e8c4b9d4SCy Schubert.Pa login.access
85*e8c4b9d4SCy Schubertconfiguration files.
86*e8c4b9d4SCy SchubertHowever this mitigates confusion between users and
87*e8c4b9d4SCy Schubertgroups of the same name.
88*e8c4b9d4SCy Schubert.It Cm fieldsep Ns = Ns Ar separators
89*e8c4b9d4SCy Schubertchanges the field separator from the default ":".
90*e8c4b9d4SCy SchubertMore than one separator
91*e8c4b9d4SCy Schubertmay be specified.
92*e8c4b9d4SCy Schubert.It Cm listsep Ns = Ns Ar separators
93*e8c4b9d4SCy Schubertchanges the field separator from the default space (''), tab (\\t) and
94*e8c4b9d4SCy Schubertcomma (,).
95*e8c4b9d4SCy SchubertMore than one separator may be specified.
96*e8c4b9d4SCy SchubertFor example, listsep=;
97*e8c4b9d4SCy Schubertwill replace the default with a semicolon (;).
98*e8c4b9d4SCy SchubertThis option may be useful when specifying Active Directory groupnames which
99*e8c4b9d4SCy Schuberttypically contain spaces.
100*e8c4b9d4SCy Schubert.El
10153f3167dSDag-Erling Smørgrav.Sh SEE ALSO
10288fcc10cSCy Schubert.Xr pam 3 ,
103*e8c4b9d4SCy Schubert.Xr syslog 3 ,
10453f3167dSDag-Erling Smørgrav.Xr login.access 5 ,
10588fcc10cSCy Schubert.Xr pam.conf 5
10653f3167dSDag-Erling Smørgrav.Sh AUTHORS
10753f3167dSDag-Erling SmørgravThe
10853f3167dSDag-Erling Smørgrav.Xr login.access 5
10953f3167dSDag-Erling Smørgravaccess control scheme was designed and implemented by
11053f3167dSDag-Erling Smørgrav.An Wietse Venema .
11153f3167dSDag-Erling Smørgrav.Pp
11253f3167dSDag-Erling SmørgravThe
11353f3167dSDag-Erling Smørgrav.Nm
114b6b2be6fSRuslan Ermilovmodule and this manual page were developed for the
115b6b2be6fSRuslan Ermilov.Fx
116b6b2be6fSRuslan ErmilovProject by
11753f3167dSDag-Erling SmørgravThinkSec AS and NAI Labs, the Security Research Division of Network
1181a0a9345SRuslan ErmilovAssociates, Inc.\& under DARPA/SPAWAR contract N66001-01-C-8035
11953f3167dSDag-Erling Smørgrav.Pq Dq CBOSS ,
12053f3167dSDag-Erling Smørgravas part of the DARPA CHATS research program.
121