<-
Apache > HTTP Server > Documentation > Modules

Apache Module mod_authz_groupfile 3zc4j

Available Languages:  ko 

Description: Group authorization using plaintext files
Status: Base
Module Identifier: authz_groupfile_module
Source File: mod_authz_groupfile.c
Compatibility: Available in Apache 2.1 and later

Summary 6m2os

This module provides authorization capabilities so that authenticated s can be allowed or denied access to portions of the web site by group hip. Similar functionality is provided by mod_authz_dbm.

 Apache!

Topics 2c136y

Directives 1a4l6m

Bugfix checklist 4i2533

See also 27136x

top

The Require Directives 503h1o

Apache's Require directives are used during the authorization phase to ensure that a is allowed to access a resource. mod_authz_groupfile extends the authorization types with group and group-file.

Since v2.4.8, expressions are ed within the groupfile require directives.

Require group 4a6r6s

This directive specifies group hip that is required for the to gain access.

Require group 

Require file-group 3o3t5c

When this directive is specified, the filesystem permissions on the file being accessed are consulted. The must be a member of a group with the same name as the group that owns the file. See mod_authz_owner for more details.

Require file-group
top

AuthGroupFile Directive 5r211f

Description: Sets the name of a text file containing the list of groups for authorization
Syntax: AuthGroupFile file-path
Context: directory, .htaccess
Override: AuthConfig
Status: Base
Module: mod_authz_groupfile

The AuthGroupFile directive sets the name of a textual file containing the list of groups for authorization. File-path is the path to the group file. If it is not absolute, it is treated as relative to the ServerRoot.

Each line of the group file contains a groupname followed by a colon, followed by the member names separated by spaces.

Example: 5n1i26

mygroup: bob joe anne

Note that searching large text files is very inefficient; AuthDBMGroupFile provides a much better performance.

Security 3oj6g

Make sure that the AuthGroupFile is stored outside the document tree of the web-server; do not put it in the directory that it protects. Otherwise, clients may be able to the AuthGroupFile.

Available Languages:  ko 

top

Comments 2p1l6j

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our s if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our mailing lists.