最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

<-
Apache > HTTP Server > 文檔 > 版本2.2 > 模塊
   致謝 | 譯者聲明 | 本篇譯者:<虛位以待> | 本篇譯稿完成時(shí)間:?年?月?日 | 獲取最新版本

Apache模塊 mod_authz_owner

說明基于文件的所有者進(jìn)行授權(quán)
狀態(tài)擴(kuò)展(E)
模塊名authz_owner_module
源文件mod_authz_owner.c
兼容性僅在 Apache 2.1 及以后的版本中可用

概述

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 mod_auth_basicmod_auth_digest. mod_authz_owner recognizes two arguments for the Require directive, file-ownerfile-group, as follows:

file-owner
The supplied web-username must match the system's name for the owner of the file being requested. That is, if the operating system says the requested file is owned by jones, then the username used to access it through the web must be jones as well.
file-group
The name of the system group that owns the file must be present in a group database, which is provided, for example, by mod_authz_groupfilemod_authz_dbm, 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, the group accounts must appear in the group database and the web-username used in the request must be a member of that group.

注意

If mod_authz_owner is used in order to authorize a resource that is not actually present in the filesystem (i.e. a virtual resource), it will deny the access.

Particularly it will never authorize content negotiated "MultiViews" resources.

top

Configuration Examples

Require file-owner

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 AuthDBMUserFile 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 jones would not be allowed to access files in /home/smith/public_html/private unless they were owned by jones instead of smith.

<Directory /home/*/public_html/private>
AuthType Basic
AuthName MyPrivateFiles
AuthBasicProvider dbm
AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all
Satisfy All
Require file-owner
</Directory>

Require file-group

Consider a system similar to the one described above, but with some users that share their project files in ~/public_html/project-foo. The files are owned by the system group foo and there is a single AuthDBMGroupFile database that contains all of the web-usernames and their group membership, i.e. they must be at least member of a group named foo. So if jonessmith are both member of the group foo, then both will be authorized to access the project-foo directories of each other.

<Directory /home/*/public_html/project-foo>
AuthType Basic
AuthName "Project Foo Files"
AuthBasicProvider dbm

# combined user/group database
AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all
AuthDBMGroupFile /usr/local/apache2/etc/.htdbm-all

Satisfy All
Require file-group
</Directory>

top

AuthzOwnerAuthoritative 指令

說明Sets whether authorization will be passed on to lower level modules
語法AuthzOwnerAuthoritative On|Off
默認(rèn)值AuthzOwnerAuthoritative On
作用域directory, .htaccess
覆蓋項(xiàng)AuthConfig
狀態(tài)擴(kuò)展(E)
模塊mod_authz_owner

Setting the AuthzOwnerAuthoritative directive explicitly to Off allows for user authorization to be passed on to lower level modules (as defined in the modules.c files) if:

Note that setting the value to Off also allows the combination of file-ownerfile-group, so access will be allowed if either one or the other (or both) match.

By default, control is not passed on and an authorization failure will result in an "Authentication Required" reply. Not setting it to Off thus keeps the system secure and forces an NCSA compliant behaviour.

桃园市| 汽车| 博客| 鄂托克旗| 焦作市| 汽车| 滦平县| 尤溪县| 东台市| 瑞丽市| 普兰店市| 潼南县| 怀安县| 建瓯市| 梁河县| 文化| 乐清市| 安宁市| 聂拉木县| 三都| 定兴县| 宽城| 郓城县| 正安县| 新余市| 利辛县| 罗田县| 宁南县| 靖安县| 洪洞县| 崇文区| 喀喇沁旗| 黄大仙区| 微博| 平塘县| 五常市| 门源| 太仓市| 阳原县| 陆川县| 调兵山市|