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

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Sun Oct 28 06:54:48 CDT 2018


Revision: 5816
          http://sourceforge.net/p/svnbook/source/5816
Author:   wuzhouhui
Date:     2018-10-28 11:54:47 +0000 (Sun, 28 Oct 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-10-28 02:56:29 UTC (rev 5815)
+++ branches/1.8/zh/book/ch06-server-configuration.xml	2018-10-28 11:54:47 UTC (rev 5816)
@@ -7520,7 +7520,6 @@
 
       <!--
       <para>It's also possible to explicitly deny permission to someone
-      ### TODO
         via inheritance rules, by setting the username variable to
         nothing:</para>
       -->
@@ -7561,13 +7560,20 @@
           以此类推. 这样做的影响是如果我们在访问规则文件里添加一个特定的
           路径, 那么它的权限配置就会覆盖从父目录继承而来的权限配置.</para>
 
+      <!--
         <para>Similarly, sections that specify a repository name have
           precedence over those that don't: if both
           <literal>[calc:/some/path]</literal> and
           <literal>[/some/path]</literal> are present, the former will be used
           and the latter ignored for <literal>calc</literal>.</para>
+      -->
+        <para>类似的, 指定了仓库名的节的权限配置将覆盖那些没有指定仓库名的节,
+          比如说访问规则文件里同时出现了 <literal>[calc:/some/path]</literal>
+          和 <literal>[/some/path]</literal>, 那么对于仓库
+          <literal>calc</literal>, 将会使用第一种配置, 而忽略第二种.</para>
       </tip>
 
+      <!--
       <para>By default, nobody has any access to any repository at all.
         That means that if you're starting with an empty file, you'll
         probably want to give at least read permission to all users at
@@ -7574,6 +7580,12 @@
         the roots of the repositories.  You can do this by using the
         asterisk variable (<literal>*</literal>), which means <quote>all
         users</quote>:</para>
+      -->
+    <para>在默认情况下, 任何用户对任意一个仓库都不具体访问权限, 这意味着
+      如果从头开始写访问规则文件, 你可能希望所有用户至少对仓库的根目录具有
+      只读权限. 可以通过把用户名设置成通配符 (<literal>*</literal>) 实现这
+      种配置, 此时通配符 <literal>*</literal> 表示 <quote>所有用户</quote>:
+    </para>
 
       <informalexample>
         <programlisting>
@@ -7582,6 +7594,7 @@
 </programlisting>
       </informalexample>
 
+      <!--
       <para>This is a common setup; notice that no repository
         name is mentioned in the section name.  This makes all repositories
         world-readable to all users.  Once all users have read access to
@@ -7588,11 +7601,20 @@
         the repositories, you can give explicit
         <literal>rw</literal> permission to certain users on specific
         subdirectories within specific repositories.</para>
+      -->
+      <para>这是一种很常见的配置, 注意在节的名字中没有指定仓库的名字. 上面的
+        配置将把所有仓库的读权限授予给所有用户. 一旦用户对仓库具有了读权限,
+        接下来就可以根据具体的需要, 把特定仓库的特定目录的读写权限
+        (<literal>rw</literal>) 授予特定的用户.</para>
 
+      <!--
       <para>Note that while all of the previous examples use
         directories, that's only because defining access rules on
         directories is the most common case.  You may similarly
         restrict access on file paths, too.</para>
+      -->
+      <para>虽然前面的例子都是针对目录的权限配置, 因为这是最常见的情况,
+        实际上管理员完全可以针对文件设置访问权限.</para>
 
       <informalexample>
         <programlisting>




More information about the svnbook-dev mailing list