6ae232055d4d8a97267517c5e50074c2c819941and<?xml version="1.0" encoding="UTF-8"?>
6ae232055d4d8a97267517c5e50074c2c819941and<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head>
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<!--
6ae232055d4d8a97267517c5e50074c2c819941and XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
6ae232055d4d8a97267517c5e50074c2c819941and This file is generated from xml source: DO NOT EDIT
6ae232055d4d8a97267517c5e50074c2c819941and XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
6ae232055d4d8a97267517c5e50074c2c819941and -->
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc<title>mod_authz_owner - Apache HTTP サーバ バージョン 2.5</title>
6ae232055d4d8a97267517c5e50074c2c819941and<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
6ae232055d4d8a97267517c5e50074c2c819941and<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" />
2e545ce2450a9953665f701bb05350f0d3f26275nd<script src="/style/scripts/prettify.min.js" type="text/javascript">
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen</script>
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
6ae232055d4d8a97267517c5e50074c2c819941and<link href="/images/favicon.ico" rel="shortcut icon" /></head>
6ae232055d4d8a97267517c5e50074c2c819941and<body>
6ae232055d4d8a97267517c5e50074c2c819941and<div id="page-header">
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<p class="menu"><a href="/mod/">モジュール</a> | <a href="/mod/quickreference.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">用語</a> | <a href="/sitemap.html">サイトマップ</a></p>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<p class="apache">Apache HTTP サーバ バージョン 2.5</p>
6ae232055d4d8a97267517c5e50074c2c819941and<img alt="" src="/images/feather.gif" /></div>
6ae232055d4d8a97267517c5e50074c2c819941and<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
6ae232055d4d8a97267517c5e50074c2c819941and<div id="path">
b43f840409794ed298e8634f6284741f193b6c4ftakashi<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP サーバ</a> &gt; <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> &gt; <a href="../">バージョン 2.5</a> &gt; <a href="./">モジュール</a></div>
6ae232055d4d8a97267517c5e50074c2c819941and<div id="page-content">
6ae232055d4d8a97267517c5e50074c2c819941and<div id="preamble"><h1>Apache モジュール mod_authz_owner</h1>
6ae232055d4d8a97267517c5e50074c2c819941and<div class="toplang">
b43f840409794ed298e8634f6284741f193b6c4ftakashi<p><span>翻訳済み言語: </span><a href="/en/mod/mod_authz_owner.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
11495c9f0bd33e51a25b4d532beadfbcf9b944a3nilgun<a href="/fr/mod/mod_authz_owner.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
6ae232055d4d8a97267517c5e50074c2c819941and<a href="/ja/mod/mod_authz_owner.html" title="Japanese">&nbsp;ja&nbsp;</a> |
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<a href="/ko/mod/mod_authz_owner.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
6ae232055d4d8a97267517c5e50074c2c819941and</div>
b43f840409794ed298e8634f6284741f193b6c4ftakashi<div class="outofdate">この日本語訳はすでに古くなっている
b43f840409794ed298e8634f6284741f193b6c4ftakashi 可能性があります。
b43f840409794ed298e8634f6284741f193b6c4ftakashi 最近更新された内容を見るには英語版をご覧下さい。
b43f840409794ed298e8634f6284741f193b6c4ftakashi </div>
6ae232055d4d8a97267517c5e50074c2c819941and<table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>ファイルの所有者に基づいた承認</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
6ae232055d4d8a97267517c5e50074c2c819941and<tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>authz_owner_module</td></tr>
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi<tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_authz_owner.c</td></tr></table>
6ae232055d4d8a97267517c5e50074c2c819941and<h3>概要</h3>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p>このモジュールはリクエストされたファイルのファイルシステムの
6ae232055d4d8a97267517c5e50074c2c819941and 所有者やグループを HTTP 認証に使われたユーザ ID (ウェブユーザ ID) と
6ae232055d4d8a97267517c5e50074c2c819941and 比較することでアクセスを承認します。提供されたユーザ名とパスワードは
6ae232055d4d8a97267517c5e50074c2c819941and <code class="module"><a href="/mod/mod_auth_basic.html">mod_auth_basic</a></code> や
6ae232055d4d8a97267517c5e50074c2c819941and <code class="module"><a href="/mod/mod_auth_digest.html">mod_auth_digest</a></code> のような認証モジュールで既に
6ae232055d4d8a97267517c5e50074c2c819941and 適切に検証されている必要があります。<code class="module"><a href="/mod/mod_authz_owner.html">mod_authz_owner</a></code>
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi は以下のように、<code class="directive"><a href="/mod/mod_authz_core.html#require">Require</a></code> ディレクティブの <code>file-owner</code> と
6ae232055d4d8a97267517c5e50074c2c819941and <code>file-group</code> という二つの引数を認識します:</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <dl>
6ae232055d4d8a97267517c5e50074c2c819941and <dt><code>file-owner</code></dt>
6ae232055d4d8a97267517c5e50074c2c819941and <dd>提供されたウェブユーザ名はリクエストされたファイルの所有者の
6ae232055d4d8a97267517c5e50074c2c819941and システムにおける名前と一致する必要があります。つまり、オペレーティング
6ae232055d4d8a97267517c5e50074c2c819941and システムがファイルは <code>jones</code> により所有されている
6ae232055d4d8a97267517c5e50074c2c819941and と言ったときは、ウェブからのアクセスに使われるユーザ名も
6ae232055d4d8a97267517c5e50074c2c819941and <code>jones</code> でなければなりません。</dd>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <dt><code>file-group</code></dt>
6ae232055d4d8a97267517c5e50074c2c819941and <dd>ファイルを所有するシステムのグループの名前が、例えば
6ae232055d4d8a97267517c5e50074c2c819941and <code class="module"><a href="/mod/mod_authz_groupfile.html">mod_authz_groupfile</a></code> や <code class="module"><a href="/mod/mod_authz_dbm.html">mod_authz_dbm</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and により提供されるグループデータベースに存在していて、
6ae232055d4d8a97267517c5e50074c2c819941and ウェブユーザ名がそのグループに属していなければなりません。
6ae232055d4d8a97267517c5e50074c2c819941and 例えば、オペレーティングシステムがファイルは (システムの) グループ
6ae232055d4d8a97267517c5e50074c2c819941and <code>accounts</code> により所有されていると言ったときは、
6ae232055d4d8a97267517c5e50074c2c819941and <code>accounts</code> がグループデータベースに存在して、
6ae232055d4d8a97267517c5e50074c2c819941and リクエストに使用されたウェブユーザ名がそのグループに属している
6ae232055d4d8a97267517c5e50074c2c819941and 必要があります。</dd>
6ae232055d4d8a97267517c5e50074c2c819941and </dl>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <div class="note"><h3>注</h3>
6ae232055d4d8a97267517c5e50074c2c819941and <p>ファイルシステムに実際には存在しないリソース
6ae232055d4d8a97267517c5e50074c2c819941and (<em>つまり</em> バーチャルなリソース) の承認に
6ae232055d4d8a97267517c5e50074c2c819941and <code class="module"><a href="/mod/mod_authz_owner.html">mod_authz_owner</a></code> が使用されたときは、
6ae232055d4d8a97267517c5e50074c2c819941and アクセスは拒否されます。</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <p>特に、<a href="/content-negotiation.html#multiviews">コンテント
6ae232055d4d8a97267517c5e50074c2c819941and ネゴシエーションされた"MultiViews"</a> のリソースは
6ae232055d4d8a97267517c5e50074c2c819941and 決して承認しません。</p>
6ae232055d4d8a97267517c5e50074c2c819941and </div>
6ae232055d4d8a97267517c5e50074c2c819941and</div>
1f1b6bf13313fdd14a45e52e553d3ff28689b717coar<div id="quickview"><h3>トピック</h3>
6ae232055d4d8a97267517c5e50074c2c819941and<ul id="topics">
6ae232055d4d8a97267517c5e50074c2c819941and<li><img alt="" src="/images/down.gif" /> <a href="#examples">設定例</a></li>
1f1b6bf13313fdd14a45e52e553d3ff28689b717coar</ul><h3 class="directives">ディレクティブ</h3>
1f1b6bf13313fdd14a45e52e553d3ff28689b717coar<p>このモジュールにディレクティブはありません。</p>
1f1b6bf13313fdd14a45e52e553d3ff28689b717coar<h3>参照</h3>
6ae232055d4d8a97267517c5e50074c2c819941and<ul class="seealso">
070897b4d34cbd17fd2846289189f2a9891f9c84takashi<li><code class="directive"><a href="/mod/mod_authz_core.html#require">Require</a></code></li>
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh</ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
6ae232055d4d8a97267517c5e50074c2c819941and<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
6ae232055d4d8a97267517c5e50074c2c819941and<div class="section">
6ae232055d4d8a97267517c5e50074c2c819941and<h2><a name="examples" id="examples">設定例</a></h2>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <h3><a name="examples.file-owner" id="examples.file-owner">Require file-owner</a></h3>
6ae232055d4d8a97267517c5e50074c2c819941and <p>複数ユーザのシステムで Apache ウェブサーバが実行されていて、
6ae232055d4d8a97267517c5e50074c2c819941and <code>~/public_html/private</code> に各ユーザがファイルを置いているとします。
6ae232055d4d8a97267517c5e50074c2c819941and <code class="directive"><a href="/mod/mod_authn_dbm.html#authdbmuserfile">AuthDBMUserFile</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and データベースが一つだけあり、すべてのウェブユーザ名が列挙されており、
6ae232055d4d8a97267517c5e50074c2c819941and このユーザ名がサーバで実際にファイルを所有しているユーザ名と一致している場合、
6ae232055d4d8a97267517c5e50074c2c819941and 次の節のような設定で、ユーザが自分自身のファイルにアクセスできるようになります。
6ae232055d4d8a97267517c5e50074c2c819941and <code>/home/smith/public_html/private</code> の中のファイルは、所有者が
6ae232055d4d8a97267517c5e50074c2c819941and <code>smith</code> の代わりに <code>jones</code> になっていない限り、
6ae232055d4d8a97267517c5e50074c2c819941and <code>jones</code> にはアクセスは許可されません。</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi <pre class="prettyprint lang-config">&lt;Directory /home/*/public_html/private&gt;
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi AuthType Basic
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi AuthName MyPrivateFiles
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi AuthBasicProvider dbm
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi Require file-owner
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi&lt;/Directory&gt;</pre>
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <h3><a name="examples.file-group" id="examples.file-group">Require file-group</a></h3>
6ae232055d4d8a97267517c5e50074c2c819941and <p>上記のようなシステムで、数人のユーザがプロジェクトのファイルを
6ae232055d4d8a97267517c5e50074c2c819941and <code>~/public_html/project-foo</code> で共有しているとします。
6ae232055d4d8a97267517c5e50074c2c819941and ファイルはシステムのグループ <code>foo</code> に所有されていて、
6ae232055d4d8a97267517c5e50074c2c819941and <code class="directive"><a href="/mod/mod_authz_dbm.html#authdbmgroupfile">AuthDBMGroupFile</a></code>
6ae232055d4d8a97267517c5e50074c2c819941and データベースが一つだけあり、そこにすべてのウェブユーザ名と
6ae232055d4d8a97267517c5e50074c2c819941and グループのメンバが列挙されている、<em>つまり</em>、それらの
6ae232055d4d8a97267517c5e50074c2c819941and ユーザは少なくとも <code>foo</code> というグループに属している、とします。
6ae232055d4d8a97267517c5e50074c2c819941and <code>jones</code> と<code>smith</code> の二人共がグループ
6ae232055d4d8a97267517c5e50074c2c819941and <code>foo</code> のメンバである場合、どちらの人も両方の
6ae232055d4d8a97267517c5e50074c2c819941and <code>project-foo</code> にアクセスが許可されます。</p>
6ae232055d4d8a97267517c5e50074c2c819941and
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi <pre class="prettyprint lang-config">&lt;Directory /home/*/public_html/project-foo&gt;
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi AuthType Basic
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi AuthName "Project Foo Files"
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi AuthBasicProvider dbm
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi # combined user/group database
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi AuthDBMGroupFile /usr/local/apache2/etc/.htdbm-all
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi Satisfy All
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi Require file-group
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi&lt;/Directory&gt;</pre>
6a3ab831a34f470b077294a173f24fcf1e5f0a3ctakashi
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and</div>
6ae232055d4d8a97267517c5e50074c2c819941and</div>
6ae232055d4d8a97267517c5e50074c2c819941and<div class="bottomlang">
b43f840409794ed298e8634f6284741f193b6c4ftakashi<p><span>翻訳済み言語: </span><a href="/en/mod/mod_authz_owner.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
11495c9f0bd33e51a25b4d532beadfbcf9b944a3nilgun<a href="/fr/mod/mod_authz_owner.html" hreflang="fr" rel="alternate" title="Français">&nbsp;fr&nbsp;</a> |
6ae232055d4d8a97267517c5e50074c2c819941and<a href="/ja/mod/mod_authz_owner.html" title="Japanese">&nbsp;ja&nbsp;</a> |
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<a href="/ko/mod/mod_authz_owner.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
727872d18412fc021f03969b8641810d8896820bhumbedooh</div><div class="top"><a href="#page-header"><img src="/images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">コメント</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators 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 Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
0d0ba3a410038e179b695446bb149cce6264e0abnd<script type="text/javascript"><!--//--><![CDATA[//><!--
727872d18412fc021f03969b8641810d8896820bhumbedoohvar comments_shortname = 'httpd';
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedoohvar comments_identifier = 'http://httpd.apache.org/docs/trunk/mod/mod_authz_owner.html';
0d0ba3a410038e179b695446bb149cce6264e0abnd(function(w, d) {
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
727872d18412fc021f03969b8641810d8896820bhumbedooh d.write('<div id="comments_thread"><\/div>');
0d0ba3a410038e179b695446bb149cce6264e0abnd var s = d.createElement('script');
0d0ba3a410038e179b695446bb149cce6264e0abnd s.type = 'text/javascript';
0d0ba3a410038e179b695446bb149cce6264e0abnd s.async = true;
ac082aefa89416cbdc9a1836eaf3bed9698201c8humbedooh s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
0d0ba3a410038e179b695446bb149cce6264e0abnd (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
0d0ba3a410038e179b695446bb149cce6264e0abnd }
0d0ba3a410038e179b695446bb149cce6264e0abnd else {
727872d18412fc021f03969b8641810d8896820bhumbedooh d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
0d0ba3a410038e179b695446bb149cce6264e0abnd }
0d0ba3a410038e179b695446bb149cce6264e0abnd})(window, document);
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh//--><!]]></script></div><div id="footer">
205f749042ed530040a4f0080dbcb47ceae8a374rjung<p class="apache">Copyright 2015 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<p class="menu"><a href="/mod/">モジュール</a> | <a href="/mod/quickreference.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">用語</a> | <a href="/sitemap.html">サイトマップ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
0d0ba3a410038e179b695446bb149cce6264e0abndif (typeof(prettyPrint) !== 'undefined') {
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd prettyPrint();
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd}
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd//--><!]]></script>
6ae232055d4d8a97267517c5e50074c2c819941and</body></html>