changingowner.po 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. msgid ""
  2. msgstr ""
  3. "Project-Id-Version: PACKAGE VERSION\n"
  4. "POT-Creation-Date: 2020-06-20 15:33+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 class=\"username\">root</"
  23. "systemitem>'s environment."
  24. msgstr ""
  25. "本书中后续的所有命令都应该在以 <systemitem class=\"username\">root</"
  26. "systemitem> 用户登录的情况下完成,而不是 <systemitem class=\"username\">lfs</"
  27. "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. #, fuzzy
  32. #| msgid ""
  33. #| "Currently, the whole directory hierarchy in <filename class=\"directory\">"
  34. #| "$LFS</filename> is owned by the user <systemitem class=\"username\">lfs</"
  35. #| "systemitem>, a user that exists only on the host system. If the "
  36. #| "directories under <filename class=\"directory\">$LFS</filename> are kept "
  37. #| "as they are, the files are owned by a user ID without a corresponding "
  38. #| "account. This is dangerous because a user account created later could get "
  39. #| "this same user ID and would own all the files under <filename class="
  40. #| "\"directory\">$LFS</filename>, thus exposing these files to possible "
  41. #| "malicious manipulation."
  42. msgid ""
  43. "Currently, the whole directory hierarchy in <filename class=\"directory\">"
  44. "$LFS</filename> is owned by the user <systemitem class=\"username\">lfs</"
  45. "systemitem>, a user that exists only on the host system. If the directories "
  46. "and files under <filename class=\"directory\">$LFS</filename> are kept as "
  47. "they are, they will be owned by a user ID without a corresponding account. "
  48. "This is dangerous because a user account created later could get this same "
  49. "user ID and would own all the files under <filename class=\"directory\">"
  50. "$LFS</filename>, thus exposing these files to possible malicious "
  51. "manipulation."
  52. msgstr ""
  53. "目前,<filename class=\"directory\">$LFS</filename> 中整个目录树的所有者都是 "
  54. "<systemitem class=\"username\">lfs</systemitem>,这个用户只在宿主系统存在。如"
  55. "果不改变 <filename class=\"directory\">$LFS</filename> 中文件和目录的所有权,"
  56. "它们会被一个没有对应账户的用户 ID 所有。这是危险的,因为后续创建的新用户可能获"
  57. "得这个用户 ID,并成为 <filename class=\"directory\">$LFS</filename> 中全部文"
  58. "件的所有者,从而产生恶意操作这些文件的可能。"
  59. #. type: Content of: <sect1><para>
  60. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/changingowner.xml:31
  61. msgid ""
  62. "To address this issue, change the ownership of the <filename class="
  63. "\"directory\">$LFS/*</filename> directories to user <systemitem class="
  64. "\"username\">root</systemitem> by running the following command:"
  65. msgstr ""
  66. "为了避免这样的问题,执行以下命令,将 <filename class=\"directory\">$LFS/*</"
  67. "filename> 目录的所有者改变为 <systemitem class=\"username\">root</"
  68. "systemitem>:"
  69. #. type: Content of: <sect1><screen>
  70. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/changingowner.xml:36
  71. #, no-wrap
  72. msgid ""
  73. "<userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}\n"
  74. "case $(uname -m) in\n"
  75. " x86_64) chown -R root:root $LFS/lib64 ;;\n"
  76. "esac</userinput>"
  77. msgstr ""
  78. "<userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}\n"
  79. "case $(uname -m) in\n"
  80. " x86_64) chown -R root:root $LFS/lib64 ;;\n"
  81. "esac</userinput>"