github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/mod/mod_authz_owner.html.ja.utf8 (about)

     1  <?xml version="1.0" encoding="UTF-8"?>
     2  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     3  <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head>
     4  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
     5  <!--
     6          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     7                This file is generated from xml source: DO NOT EDIT
     8          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     9        -->
    10  <title>mod_authz_owner - Apache HTTP サーバ バージョン 2.2</title>
    11  <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
    12  <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
    13  <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" />
    14  <script src="../style/scripts/prettify.min.js" type="text/javascript">
    15  </script>
    16  
    17  <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/mod/mod_authz_owner.html" rel="canonical" /></head>
    18  <body>
    19  <div id="page-header">
    20  <p class="menu"><a href="../mod/">モジュール</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a></p>
    21  <p class="apache">Apache HTTP サーバ バージョン 2.2</p>
    22  <img alt="" src="../images/feather.gif" /></div>
    23  <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
    24  <div id="path">
    25  <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.2</a> &gt; <a href="./">モジュール</a></div>
    26  <div id="page-content">
    27  <div class="retired"><h4>Please note</h4>
    28              <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p>
    29          <p>You may follow <a href="http://httpd.apache.org/docs/current/mod/mod_authz_owner.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>Apache モジュール mod_authz_owner</h1>
    30  <div class="toplang">
    31  <p><span>翻訳済み言語: </span><a href="../en/mod/mod_authz_owner.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
    32  <a href="../ja/mod/mod_authz_owner.html" title="Japanese">&nbsp;ja&nbsp;</a> |
    33  <a href="../ko/mod/mod_authz_owner.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
    34  </div>
    35  <table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>ファイルの所有者に基づいた承認</td></tr>
    36  <tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
    37  <tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>authz_owner_module</td></tr>
    38  <tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_authz_owner.c</td></tr>
    39  <tr><th><a href="module-dict.html#Compatibility">互換性:</a></th><td>Apache 2.1 以降で使用可能</td></tr></table>
    40  <h3>概要</h3>
    41  
    42      <p>このモジュールはリクエストされたファイルのファイルシステムの
    43      所有者やグループを HTTP 認証に使われたユーザ ID (ウェブユーザ ID) と
    44      比較することでアクセスを承認します。提供されたユーザ名とパスワードは
    45      <code class="module"><a href="../mod/mod_auth_basic.html">mod_auth_basic</a></code> や
    46      <code class="module"><a href="../mod/mod_auth_digest.html">mod_auth_digest</a></code> のような認証モジュールで既に
    47      適切に検証されている必要があります。<code class="module"><a href="../mod/mod_authz_owner.html">mod_authz_owner</a></code>
    48      は以下のように、<code class="directive"><a href="../mod/core.html#require">Require</a></code> ディレクティブの <code>file-owner</code> と
    49      <code>file-group</code> という二つの引数を認識します:</p>
    50  
    51      <dl>
    52        <dt><code>file-owner</code></dt>
    53        <dd>提供されたウェブユーザ名はリクエストされたファイルの所有者の
    54        システムにおける名前と一致する必要があります。つまり、オペレーティング
    55        システムがファイルは <code>jones</code> により所有されている
    56        と言ったときは、ウェブからのアクセスに使われるユーザ名も
    57        <code>jones</code> でなければなりません。</dd>
    58  
    59        <dt><code>file-group</code></dt>
    60        <dd>ファイルを所有するシステムのグループの名前が、例えば
    61        <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>
    62        により提供されるグループデータベースに存在していて、
    63        ウェブユーザ名がそのグループに属していなければなりません。
    64        例えば、オペレーティングシステムがファイルは (システムの) グループ
    65        <code>accounts</code> により所有されていると言ったときは、
    66        <code>accounts</code> がグループデータベースに存在して、
    67        リクエストに使用されたウェブユーザ名がそのグループに属している
    68        必要があります。</dd>
    69      </dl>
    70  
    71      <div class="note"><h3>注</h3>
    72        <p>ファイルシステムに実際には存在しないリソース
    73        (<em>つまり</em> バーチャルなリソース) の承認に
    74        <code class="module"><a href="../mod/mod_authz_owner.html">mod_authz_owner</a></code> が使用されたときは、
    75        アクセスは拒否されます。</p>
    76  
    77        <p>特に、<a href="../content-negotiation.html#multiviews">コンテント
    78        ネゴシエーションされた"MultiViews"</a> のリソースは
    79        決して承認しません。</p>
    80      </div>
    81  </div>
    82  <div id="quickview"><h3>トピック</h3>
    83  <ul id="topics">
    84  <li><img alt="" src="../images/down.gif" /> <a href="#examples">設定例</a></li>
    85  </ul><h3 class="directives">ディレクティブ</h3>
    86  <ul id="toc">
    87  <li><img alt="" src="../images/down.gif" /> <a href="#authzownerauthoritative">AuthzOwnerAuthoritative</a></li>
    88  </ul>
    89  <h3>参照</h3>
    90  <ul class="seealso">
    91  <li><code class="directive"><a href="../mod/core.html#require">Require</a></code></li>
    92  <li><code class="directive"><a href="../mod/core.html#satisfy">Satisfy</a></code></li>
    93  </ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
    94  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
    95  <div class="section">
    96  <h2><a name="examples" id="examples">設定例</a></h2>
    97  
    98      <h3><a name="examples.file-owner" id="examples.file-owner">Require file-owner</a></h3>
    99        <p>複数ユーザのシステムで Apache ウェブサーバが実行されていて、
   100        <code>~/public_html/private</code> に各ユーザがファイルを置いているとします。
   101        <code class="directive"><a href="../mod/mod_authn_dbm.html#authdbmuserfile">AuthDBMUserFile</a></code>
   102        データベースが一つだけあり、すべてのウェブユーザ名が列挙されており、
   103        このユーザ名がサーバで実際にファイルを所有しているユーザ名と一致している場合、
   104        次の節のような設定で、ユーザが自分自身のファイルにアクセスできるようになります。
   105        <code>/home/smith/public_html/private</code> の中のファイルは、所有者が
   106        <code>smith</code> の代わりに <code>jones</code> になっていない限り、
   107        <code>jones</code> にはアクセスは許可されません。</p>
   108  
   109        <div class="example"><p><code>
   110          &lt;Directory /home/*/public_html/private&gt;<br />
   111          <span class="indent">
   112            AuthType Basic<br />
   113            AuthName MyPrivateFiles<br />
   114            AuthBasicProvider dbm<br />
   115            AuthDBMUserFile /usr/local/apache2/etc/.htdbm-all<br />
   116            Satisfy All<br />
   117            Require file-owner<br />
   118          </span>
   119          &lt;/Directory&gt;
   120        </code></p></div>
   121      
   122  
   123      <h3><a name="examples.file-group" id="examples.file-group">Require file-group</a></h3>
   124        <p>上記のようなシステムで、数人のユーザがプロジェクトのファイルを
   125        <code>~/public_html/project-foo</code> で共有しているとします。
   126        ファイルはシステムのグループ <code>foo</code> に所有されていて、
   127        <code class="directive"><a href="../mod/mod_authz_dbm.html#authdbmgroupfile">AuthDBMGroupFile</a></code>
   128        データベースが一つだけあり、そこにすべてのウェブユーザ名と
   129        グループのメンバが列挙されている、<em>つまり</em>、それらの
   130        ユーザは少なくとも <code>foo</code> というグループに属している、とします。
   131        <code>jones</code> と<code>smith</code> の二人共がグループ
   132        <code>foo</code> のメンバである場合、どちらの人も両方の
   133        <code>project-foo</code> にアクセスが許可されます。</p>
   134  
   135        <div class="example"><p><code>
   136          &lt;Directory /home/*/public_html/project-foo&gt;<br />
   137          <span class="indent">
   138            AuthType Basic<br />
   139            AuthName "Project Foo Files"<br />
   140            AuthBasicProvider dbm<br />
   141            <br />
   142            # combined user/group database<br />
   143            AuthDBMUserFile  /usr/local/apache2/etc/.htdbm-all<br />
   144            AuthDBMGroupFile /usr/local/apache2/etc/.htdbm-all<br />
   145            <br />
   146            Satisfy All<br />
   147            Require file-group<br />
   148          </span>
   149          &lt;/Directory&gt;
   150        </code></p></div>
   151      
   152  </div>
   153  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   154  <div class="directive-section"><h2><a name="AuthzOwnerAuthoritative" id="AuthzOwnerAuthoritative">AuthzOwnerAuthoritative</a> <a name="authzownerauthoritative" id="authzownerauthoritative">ディレクティブ</a></h2>
   155  <table class="directive">
   156  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>承認が下位承認モジュールに渡されるかどうかを設定する</td></tr>
   157  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>AuthzOwnerAuthoritative On|Off</code></td></tr>
   158  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>AuthzOwnerAuthoritative On</code></td></tr>
   159  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>ディレクトリ, .htaccess</td></tr>
   160  <tr><th><a href="directive-dict.html#Override">上書き:</a></th><td>AuthConfig</td></tr>
   161  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   162  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_authz_owner</td></tr>
   163  </table>
   164      <p><code class="directive">AuthzOwnerAuthoritative</code> ディレクティブを
   165      明示的に <code>Off</code> に設定すると、以下の場合に認証が
   166      (<code>modules.c</code> で定義されている) 下位のモジュールに
   167      渡されるようにします:</p>
   168  
   169      <ul>
   170      <li><code>file-owner</code> の場合は、提供されたウェブユーザ名に
   171      ファイルシステムの所有者が一致しないか、所有者がわからない場合。</li>
   172  
   173      <li><code>file-group</code> の場合は、提供されたウェブユーザ名が
   174      ファイルシステムグループに存在しないか、わからない場合。</li>
   175      </ul>
   176  
   177      <p>値を <code>Off</code> に設定すると、<code>file-owner</code> と
   178      <code>file-group</code> を組み合わせることもできるようになり、
   179      その場合はどちらか (両方でも) にマッチした場合にアクセスを許可されます。</p>
   180  
   181      <p>デフォルトでは制御は渡されず、未知のグループの場合は Authentication
   182      Required 応答が返されます。ですから、<code>Off</code> に設定しないことで
   183      システムを安全に保つことができ、NCSA 互換の振る舞いをさせることになります。</p>
   184  
   185  </div>
   186  </div>
   187  <div class="bottomlang">
   188  <p><span>翻訳済み言語: </span><a href="../en/mod/mod_authz_owner.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
   189  <a href="../ja/mod/mod_authz_owner.html" title="Japanese">&nbsp;ja&nbsp;</a> |
   190  <a href="../ko/mod/mod_authz_owner.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
   191  </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>
   192  <script type="text/javascript"><!--//--><![CDATA[//><!--
   193  var comments_shortname = 'httpd';
   194  var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_authz_owner.html';
   195  (function(w, d) {
   196      if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
   197          d.write('<div id="comments_thread"><\/div>');
   198          var s = d.createElement('script');
   199          s.type = 'text/javascript';
   200          s.async = true;
   201          s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
   202          (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
   203      }
   204      else { 
   205          d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
   206      }
   207  })(window, document);
   208  //--><!]]></script></div><div id="footer">
   209  <p class="apache">Copyright 2017 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
   210  <p class="menu"><a href="../mod/">モジュール</a> | <a href="../mod/directives.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[//><!--
   211  if (typeof(prettyPrint) !== 'undefined') {
   212      prettyPrint();
   213  }
   214  //--><!]]></script>
   215  </body></html>