changingowner.po 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. msgid ""
  2. msgstr ""
  3. "Project-Id-Version: PACKAGE VERSION\n"
  4. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  5. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  6. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  7. "Language-Team: LANGUAGE <LL@li.org>\n"
  8. "Language: zh_CN\n"
  9. "MIME-Version: 1.0\n"
  10. "Content-Type: text/plain; charset=UTF-8\n"
  11. "Content-Transfer-Encoding: 8bit\n"
  12. #. type: Content of: <sect1><title>
  13. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/changingowner.xml:11
  14. msgid "Changing Ownership"
  15. msgstr "改变所有者"
  16. #. type: Content of: <sect1><note><para>
  17. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/changingowner.xml:14
  18. msgid ""
  19. "The commands in the remainder of this book must be performed while logged in "
  20. "as user <systemitem class=\"username\">root</systemitem> and no longer as "
  21. "user <systemitem class=\"username\">lfs</systemitem>. Also, double check "
  22. "that <envar>$LFS</envar> is set in <systemitem "
  23. "class=\"username\">root</systemitem>'s environment."
  24. msgstr ""
  25. "本书中后续的所有命令都应该在以 <systemitem class=\"username\">root"
  26. "</systemitem> 用户登录的情况下完成,而不是 <systemitem class=\"username\">"
  27. "lfs</systemitem> 用户。另外,请再次检查 <envar>$LFS</envar> 变量已经在 "
  28. "<systemitem class=\"username\">root</systemitem> 用户的环境中设定好。"
  29. #. type: Content of: <sect1><para>
  30. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/changingowner.xml:21
  31. msgid ""
  32. "Currently, the whole directory hierarchy in <filename "
  33. "class=\"directory\">$LFS</filename> is owned by the user <systemitem "
  34. "class=\"username\">lfs</systemitem>, a user that exists only on the host "
  35. "system. If the directories under <filename "
  36. "class=\"directory\">$LFS</filename> are kept as they are, the files are "
  37. "owned by a user ID without a corresponding account. This is dangerous "
  38. "because a user account created later could get this same user ID and would "
  39. "own all the files under <filename class=\"directory\">$LFS</filename>, thus "
  40. "exposing these files to possible malicious manipulation."
  41. msgstr ""
  42. "目前,<filename class=\"directory\">$LFS</filename> 中整个目录树的所有者"
  43. "都是 <systemitem class=\"username\">lfs</systemitem>,这个用户只在宿主系统"
  44. "存在。如果不改变 <filename class=\"directory\">$LFS</filename> 中目录的"
  45. "所有权,这些文件会被一个没有对应账户的用户 ID 所有。这是危险的,"
  46. "因为后续创建的新用户可能获得这个用户 ID,并成为 "
  47. "<filename class=\"directory\">$LFS</filename> 中全部文件的所有者,"
  48. "从而产生恶意操作这些文件的可能。"
  49. #. type: Content of: <sect1><para>
  50. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/changingowner.xml:31
  51. msgid ""
  52. "To address this issue, change the ownership of the <filename "
  53. "class=\"directory\">$LFS/*</filename> directories to user <systemitem "
  54. "class=\"username\">root</systemitem> by running the following command:"
  55. msgstr ""
  56. "为了避免这样的问题,执行以下命令,将 <filename class=\"directory\">"
  57. "$LFS/*</filename> 目录的所有者改变为 <systemitem class=\"username\">"
  58. "root</systemitem>:"
  59. #. type: Content of: <sect1><screen>
  60. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/changingowner.xml:36
  61. #, no-wrap
  62. msgid ""
  63. "<userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}\n"
  64. "case $(uname -m) in\n"
  65. " x86_64) chown -R root:root $LFS/lib64 ;;\n"
  66. "esac</userinput>"
  67. msgstr ""
  68. "<userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}\n"
  69. "case $(uname -m) in\n"
  70. " x86_64) chown -R root:root $LFS/lib64 ;;\n"
  71. "esac</userinput>"