Przeglądaj źródła

chapter07: Translate /etc/shells configuration

Xi Ruoyao 7 lat temu
rodzic
commit
39c9d3d1f6
1 zmienionych plików z 14 dodań i 18 usunięć
  1. 14 18
      chapter07/etcshells.xml

+ 14 - 18
chapter07/etcshells.xml

@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
@@ -14,28 +14,24 @@
     <date>$Date$</date>
   </sect1info>
 -->
-  <title>Creating the /etc/shells File</title>
+  <title>创建 /etc/shells 文件</title>
 
   <indexterm zone="ch-config-shells">
     <primary sortas="e-etc-shells">/etc/shells</primary>
   </indexterm>
 
-  <para>The <filename>shells</filename> file contains a list of
-  login shells on the system. Applications use this file to determine
-  whether a shell is valid. For each shell a single line should be
-  present, consisting of the shell's path, relative to the root of the
-  directory structure (/).</para>
-
-  <para>For example, this file is consulted by <command>chsh</command>
-  to determine whether an unprivileged user may change the login shell for her
-  own account. If the command name is not listed, the user will be denied of
-  change.</para>
-
-  <para>It is a requirement for applications such as
-  <application>GDM</application> which does not populate the
-  face browser if it can't find <filename>/etc/shells</filename>, or
-  FTP daemons which traditionally disallow access to users
-  with shells not included in this file.</para>
+  <para><filename>shells</filename> 文件包含系统登录 shell 的列表,
+	  应用程序使用该文件判断 shell 是否合法。该文件中每行指定一个
+	  shell ,包含该 shell 相对于目录树根 (/) 的路径。</para>
+
+  <para>例如 <command>chsh</command>
+	  使用该文件判断一个非特权用户是否可以修改自己的登录 shell 。
+	  如果命令没有在 /etc/shell 中找到,就会拒绝修改操作。</para>
+
+  <para>这个文件对某些程序是必要的。例如
+  <application>GDM</application> 在找不到
+  <filename>/etc/shells</filename> 时不会填充登录界面,
+  FTP 守护进程通常禁止那些使用未在此文件列出的终端的用户登录。</para>
 
 <screen role="root"><userinput>cat &gt; /etc/shells &lt;&lt; "EOF"
 <literal># Begin /etc/shells