Apache Module mod_authz_owner
combined user/group database AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all AuthDBMGroupFile /usr/local/apache2/etc/.htdbm-all Satisfy All Require file-group
This module authorizes access to files by comparing the userid used for HTTP authentication (the web userid) with the file-system owner or group of the requested file. The supplied username and password must be already properly verified by an authentication module, such as
recognizes two arguments for the modauthzowner
, then the username used to access it through the web must be jones
, and the web-username must be a member of that group. For example, if the operating system says the requested file is owned by (system) group accounts
must appear in the group database and the web-username used in the request must be a member of that group.If
is used in order to authorize a resource that is not actually present in the filesystem (modauthzowneri.e. a virtual resource), it will deny the access.
Particularly it will never authorize content negotiated "MultiViews" resources.
This module provides no directives.
Consider a multi-user system running the Apache Web server, with each user having his or her own files in ~/public_html/private
. Assuming that there is a single
database that lists all of their web-usernames, and that these usernames match the system's usernames that actually own the files on the server, then the following stanza would allow only the user himself access to his own files. User AuthDBMUserFilejones
would not be allowed to access files in /home/smith/public_html/private
unless they were owned by jones
Consider a system similar to the one described above, but with some users that share their project files in ~/public_html/project-foo
database that contains all of the web-usernames and their group membership, AuthDBMGroupFilei.e. they must be at least member of a group named foo
, then both will be authorized to access the project-foo
directories of each other.
Modules | Directives | FAQ | Glossary | Sitemap
Apache HTTP Server Version 2.4
Modules
Modules | Directives | FAQ | Glossary | Sitemap
Apache Module mod_authz_owner
Available Languages: en | fr | ja | ko
en
Available Languages: en | fr | ja | ko
Apache License, Version 2.0
Copyright 2014 The Apache Software Foundation.Licensed under the Apache License, Version 2.0.