[svnbook] r5689 committed - branches/1.8/zh/book/ ch06-server-configuration.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Thu May 17 08:57:01 CDT 2018


Revision: 5689
          http://sourceforge.net/p/svnbook/source/5689
Author:   wuzhouhui
Date:     2018-05-17 13:56:50 +0000 (Thu, 17 May 2018)
Log Message:
-----------
1.8/zh: translation of chapter 6 in progress

Modified Paths:
--------------
    branches/1.8/zh/book/ch06-server-configuration.xml

Modified: branches/1.8/zh/book/ch06-server-configuration.xml
===================================================================
--- branches/1.8/zh/book/ch06-server-configuration.xml	2018-05-16 23:13:49 UTC (rev 5688)
+++ branches/1.8/zh/book/ch06-server-configuration.xml	2018-05-17 13:56:50 UTC (rev 5689)
@@ -1730,6 +1730,7 @@
 </programlisting>
         </informalexample>
 
+      <!--
         <para>The value of <literal>password-db</literal> can be an
           absolute or relative path to the users file.  For many
           admins, it's easy to keep the file right in the
@@ -1744,13 +1745,27 @@
           set the file's read and write permissions appropriately.  If
           you know which user(s) <command>svnserve</command> will run
           as, restrict read access to the users file as necessary.</para>
+      -->
+        <para>变量 <literal>password-db</literal> 的值可以是指向用户文件
+          的绝对路径或相对路径, 管理员很容易就能把用户文件设置到仓库的
+          <filename>conf/</filename> 目录内, 和
+          <filename>svnserve.conf</filename> 放在一起. 另外, 多个仓库还能
+          共享同一个用户文件, 在这种情况下, 文件应该放在更加开放的位置.
+          共享同一用户文件的仓库还要配置相同的领域, 因为用户名列表在本质上
+          就已经定义了一个认证领域. 无论用户文件放在何处, 都要设置好它的
+          读写权限. 如果管理员知道 <command>svnserve</command> 将以哪些用户
+          身份运行, 在必要时可限制用户文件的读取权限.</para>
 
       </sect3>
 
       <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
       <sect3 id="svn.serverconfig.svnserve.auth.general">
+      <!--
         <title>Set access controls</title>
+      -->
+        <title>设置访问控制</title>
 
+      <!--
         <para>There are two more variables to set in the
           <filename>svnserve.conf</filename> file: they determine what
           unauthenticated (anonymous) and authenticated users are
@@ -1762,6 +1777,14 @@
           <literal>read</literal> allows read-only access to the
           repository, and <literal>write</literal> allows complete
           read/write access to the repository.  For example:</para>
+      -->
+        <para>还有两个变量可以在 <filename>svnserve.conf</filename> 里设置:
+          它们决定了未验证 (匿名) 的用户和已验证的用户可以做哪些事情. 变量
+          <literal>anon-access</literal> 和 <literal>auth-access</literal>
+          可被设置的值有 <literal>none</literal>, <literal>read</literal>
+          和 <literal>write</literal>. 设置为 <literal>none</literal> 将
+          禁止读和写; <literal>read</literal> 允许以只读方式访问仓库;
+          <literal>write</literal> 允许对仓库进行完全的读写访问. 例如:</para>
 
         <informalexample>
           <programlisting>
@@ -1777,10 +1800,14 @@
 </programlisting>
         </informalexample>
 
+      <!--
         <para>The example settings are, in fact, the default values of
           the variables, should you forget to define them.  If you
           want to be even more conservative, you can block anonymous
           access completely:</para>
+      -->
+        <para>例子所展示的其实就是变量的默认值, 以免管理员忘记设置它们. 如
+          果管理员需要更加保守的设置, 可以完全禁止匿名访问:</para>
 
         <informalexample>
           <programlisting>




More information about the svnbook-dev mailing list