1242be47eSzrj.\" Copyright (c) 2003 Networks Associates Technology, Inc. 2242be47eSzrj.\" Copyright (c) 2004-2011 Dag-Erling Smørgrav 3242be47eSzrj.\" All rights reserved. 4242be47eSzrj.\" 5242be47eSzrj.\" Portions of this software were developed for the FreeBSD Project by 6242be47eSzrj.\" ThinkSec AS and NAI Labs, the Security Research Division of Network 7242be47eSzrj.\" Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 8242be47eSzrj.\" ("CBOSS"), as part of the DARPA CHATS research program. 9242be47eSzrj.\" 10242be47eSzrj.\" Redistribution and use in source and binary forms, with or without 11242be47eSzrj.\" modification, are permitted provided that the following conditions 12242be47eSzrj.\" are met: 13242be47eSzrj.\" 1. Redistributions of source code must retain the above copyright 14242be47eSzrj.\" notice, this list of conditions and the following disclaimer. 15242be47eSzrj.\" 2. Redistributions in binary form must reproduce the above copyright 16242be47eSzrj.\" notice, this list of conditions and the following disclaimer in the 17242be47eSzrj.\" documentation and/or other materials provided with the distribution. 18242be47eSzrj.\" 3. The name of the author may not be used to endorse or promote 19242be47eSzrj.\" products derived from this software without specific prior written 20242be47eSzrj.\" permission. 21242be47eSzrj.\" 22242be47eSzrj.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 23242be47eSzrj.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24242be47eSzrj.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25242be47eSzrj.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 26242be47eSzrj.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27242be47eSzrj.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28242be47eSzrj.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29242be47eSzrj.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30242be47eSzrj.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31242be47eSzrj.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32242be47eSzrj.\" SUCH DAMAGE. 33242be47eSzrj.\" 34*c98db407SSascha Wildner.\" $FreeBSD: head/lib/libpam/modules/pam_group/pam_group.8 268890 2014-07-19 21:04:21Z des $ 35242be47eSzrj.\" 36*c98db407SSascha Wildner.Dd July 24, 2018 37242be47eSzrj.Dt PAM_GROUP 8 38242be47eSzrj.Os 39242be47eSzrj.Sh NAME 40242be47eSzrj.Nm pam_group 41242be47eSzrj.Nd Group PAM module 42242be47eSzrj.Sh SYNOPSIS 43242be47eSzrj.Op Ar service-name 44242be47eSzrj.Ar module-type 45242be47eSzrj.Ar control-flag 46242be47eSzrj.Pa pam_group 47242be47eSzrj.Op Ar arguments 48242be47eSzrj.Sh DESCRIPTION 49242be47eSzrjThe group service module for PAM accepts or rejects users based on 50242be47eSzrjtheir membership in a particular file group. 51*c98db407SSascha Wildner.Nm 52*c98db407SSascha Wildnerprovides functionality for two PAM categories: authentication and 53*c98db407SSascha Wildneraccount management. 54*c98db407SSascha WildnerIn terms of the module-type parameter, they are the 55*c98db407SSascha Wildner.Dq auth 56*c98db407SSascha Wildnerand 57*c98db407SSascha Wildner.Dq account 58*c98db407SSascha Wildnerfeatures. 59242be47eSzrj.Pp 60242be47eSzrjThe following options may be passed to the 61242be47eSzrj.Nm 62242be47eSzrjmodule: 63242be47eSzrj.Bl -tag -width ".Cm fail_safe" 64242be47eSzrj.It Cm deny 65242be47eSzrjReverse the meaning of the test, i.e., reject the applicant if and only 66242be47eSzrjif he or she is a member of the specified group. 67242be47eSzrjThis can be useful to exclude certain groups of users from certain 68242be47eSzrjservices. 69242be47eSzrj.It Cm fail_safe 70242be47eSzrjIf the specified group does not exist, or has no members, act as if 71242be47eSzrjit does exist and the applicant is a member. 72242be47eSzrj.It Cm group Ns = Ns Ar groupname 73242be47eSzrjSpecify the name of the group to check. 74242be47eSzrjThe default is 75242be47eSzrj.Dq Li wheel . 76242be47eSzrj.It Cm luser 77242be47eSzrjAccept or reject based on the target user's group membership. 78242be47eSzrj.It Cm root_only 79242be47eSzrjSkip this module entirely if the target account is not the superuser 80242be47eSzrjaccount. 81242be47eSzrj.It Cm ruser 82242be47eSzrjAccept or reject based on the supplicant's group membership. 83242be47eSzrjThis is the default. 84242be47eSzrj.El 85242be47eSzrj.Pp 86242be47eSzrjNote that the 87242be47eSzrj.Cm luser 88242be47eSzrjand 89242be47eSzrj.Cm ruser 90242be47eSzrjoptions are mutually exclusive, and that 91242be47eSzrj.Nm 92242be47eSzrjwill fail if both are specified. 93242be47eSzrj.Sh SEE ALSO 94dfc0c85aSSascha Wildner.Xr pam 3 , 95dfc0c85aSSascha Wildner.Xr pam.conf 5 96242be47eSzrj.Sh AUTHORS 97242be47eSzrjThe 98242be47eSzrj.Nm 99242be47eSzrjmodule and this manual page were developed for the 100242be47eSzrj.Fx 101242be47eSzrjProject by 102242be47eSzrjThinkSec AS and NAI Labs, the Security Research Division of Network 103242be47eSzrjAssociates, Inc.\& under DARPA/SPAWAR contract N66001-01-C-8035 104242be47eSzrj.Pq Dq CBOSS , 105242be47eSzrjas part of the DARPA CHATS research program. 106