xref: /freebsd/lib/libpam/modules/pam_group/pam_group.8 (revision 6e1fc0118033f42b7c0d3623c8f67a89ebecabb2)
1687200d0SDag-Erling Smørgrav.\" Copyright (c) 2003 Networks Associates Technology, Inc.
2e84da6fbSDag-Erling Smørgrav.\" Copyright (c) 2004-2011 Dag-Erling Smørgrav
3687200d0SDag-Erling Smørgrav.\" All rights reserved.
4687200d0SDag-Erling Smørgrav.\"
5687200d0SDag-Erling Smørgrav.\" Portions of this software were developed for the FreeBSD Project by
6687200d0SDag-Erling Smørgrav.\" ThinkSec AS and NAI Labs, the Security Research Division of Network
7687200d0SDag-Erling Smørgrav.\" Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
8687200d0SDag-Erling Smørgrav.\" ("CBOSS"), as part of the DARPA CHATS research program.
9687200d0SDag-Erling Smørgrav.\"
10687200d0SDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
11687200d0SDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
12687200d0SDag-Erling Smørgrav.\" are met:
13687200d0SDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
14687200d0SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
15687200d0SDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
16687200d0SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
17687200d0SDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
18687200d0SDag-Erling Smørgrav.\" 3. The name of the author may not be used to endorse or promote
19687200d0SDag-Erling Smørgrav.\"    products derived from this software without specific prior written
20687200d0SDag-Erling Smørgrav.\"    permission.
21687200d0SDag-Erling Smørgrav.\"
22687200d0SDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23687200d0SDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24687200d0SDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25687200d0SDag-Erling Smørgrav.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26687200d0SDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27687200d0SDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28687200d0SDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29687200d0SDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30687200d0SDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31687200d0SDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32687200d0SDag-Erling Smørgrav.\" SUCH DAMAGE.
33687200d0SDag-Erling Smørgrav.\"
3416722cb2SDag-Erling Smørgrav.Dd July 19, 2014
35687200d0SDag-Erling Smørgrav.Dt PAM_GROUP 8
36687200d0SDag-Erling Smørgrav.Os
37687200d0SDag-Erling Smørgrav.Sh NAME
38687200d0SDag-Erling Smørgrav.Nm pam_group
39687200d0SDag-Erling Smørgrav.Nd Group PAM module
40687200d0SDag-Erling Smørgrav.Sh SYNOPSIS
41687200d0SDag-Erling Smørgrav.Op Ar service-name
42687200d0SDag-Erling Smørgrav.Ar module-type
43687200d0SDag-Erling Smørgrav.Ar control-flag
44687200d0SDag-Erling Smørgrav.Pa pam_group
45687200d0SDag-Erling Smørgrav.Op Ar arguments
46687200d0SDag-Erling Smørgrav.Sh DESCRIPTION
47687200d0SDag-Erling SmørgravThe group service module for PAM accepts or rejects users based on
48687200d0SDag-Erling Smørgravtheir membership in a particular file group.
4916722cb2SDag-Erling Smørgrav.Nm pam_group
5016722cb2SDag-Erling Smørgravprovides functionality for two PAM categories: authentication and
5116722cb2SDag-Erling Smørgravaccount management.
5216722cb2SDag-Erling SmørgravIn terms of the module-type parameter, they are the ``auth'' and
5316722cb2SDag-Erling Smørgrav``account'' features.
54687200d0SDag-Erling Smørgrav.Pp
55687200d0SDag-Erling SmørgravThe following options may be passed to the
56687200d0SDag-Erling Smørgrav.Nm
57687200d0SDag-Erling Smørgravmodule:
58687200d0SDag-Erling Smørgrav.Bl -tag -width ".Cm fail_safe"
59687200d0SDag-Erling Smørgrav.It Cm deny
6066abb7a6SRuslan ErmilovReverse the meaning of the test, i.e., reject the applicant if and only
61687200d0SDag-Erling Smørgravif he or she is a member of the specified group.
62687200d0SDag-Erling SmørgravThis can be useful to exclude certain groups of users from certain
63687200d0SDag-Erling Smørgravservices.
64687200d0SDag-Erling Smørgrav.It Cm fail_safe
65687200d0SDag-Erling SmørgravIf the specified group does not exist, or has no members, act as if
66687200d0SDag-Erling Smørgravit does exist and the applicant is a member.
67687200d0SDag-Erling Smørgrav.It Cm group Ns = Ns Ar groupname
68687200d0SDag-Erling SmørgravSpecify the name of the group to check.
69687200d0SDag-Erling SmørgravThe default is
7066abb7a6SRuslan Ermilov.Dq Li wheel .
71e84da6fbSDag-Erling Smørgrav.It Cm luser
72e84da6fbSDag-Erling SmørgravAccept or reject based on the target user's group membership.
73687200d0SDag-Erling Smørgrav.It Cm root_only
74687200d0SDag-Erling SmørgravSkip this module entirely if the target account is not the superuser
75687200d0SDag-Erling Smørgravaccount.
76e84da6fbSDag-Erling Smørgrav.It Cm ruser
77e84da6fbSDag-Erling SmørgravAccept or reject based on the supplicant's group membership.
78e84da6fbSDag-Erling SmørgravThis is the default.
79687200d0SDag-Erling Smørgrav.El
80e84da6fbSDag-Erling Smørgrav.Pp
81e84da6fbSDag-Erling SmørgravNote that the
82e84da6fbSDag-Erling Smørgrav.Cm luser
83e84da6fbSDag-Erling Smørgravand
84e84da6fbSDag-Erling Smørgrav.Cm ruser
85e84da6fbSDag-Erling Smørgravoptions are mutually exclusive, and that
86e84da6fbSDag-Erling Smørgrav.Nm
87e84da6fbSDag-Erling Smørgravwill fail if both are specified.
88687200d0SDag-Erling Smørgrav.Sh SEE ALSO
89*6e1fc011SGraham Percival.Xr pam 3 ,
90*6e1fc011SGraham Percival.Xr pam.conf 5
91687200d0SDag-Erling Smørgrav.Sh AUTHORS
92687200d0SDag-Erling SmørgravThe
93687200d0SDag-Erling Smørgrav.Nm
94687200d0SDag-Erling Smørgravmodule and this manual page were developed for the
95687200d0SDag-Erling Smørgrav.Fx
96687200d0SDag-Erling SmørgravProject by
97687200d0SDag-Erling SmørgravThinkSec AS and NAI Labs, the Security Research Division of Network
981a0a9345SRuslan ErmilovAssociates, Inc.\& under DARPA/SPAWAR contract N66001-01-C-8035
99687200d0SDag-Erling Smørgrav.Pq Dq CBOSS ,
100687200d0SDag-Erling Smørgravas part of the DARPA CHATS research program.
101