changingowner.po 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. msgid ""
  2. msgstr ""
  3. "X-Pootle-Revision: 9999999\n"
  4. "X-Pootle-Path: /zh_CN/lfs/chapter07/changingowner.po\n"
  5. "Project-Id-Version: PACKAGE VERSION\n"
  6. "POT-Creation-Date: 2020-08-08 19:28+0800\n"
  7. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  8. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  9. "Language-Team: LANGUAGE <LL@li.org>\n"
  10. "Language: zh_CN\n"
  11. "MIME-Version: 1.0\n"
  12. "Content-Type: text/plain; charset=UTF-8\n"
  13. "Content-Transfer-Encoding: 8bit\n"
  14. #. type: Content of: <sect1><title>
  15. msgid "Changing Ownership"
  16. msgstr "改变所有者"
  17. #. type: Content of: <sect1><note><para>
  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. msgid ""
  31. "Currently, the whole directory hierarchy in <filename class=\"directory\">"
  32. "$LFS</filename> is owned by the user <systemitem class=\"username\">lfs</"
  33. "systemitem>, a user that exists only on the host system. If the directories "
  34. "and files under <filename class=\"directory\">$LFS</filename> are kept as "
  35. "they are, they will be owned by a user ID without a corresponding account. "
  36. "This is dangerous because a user account created later could get this same "
  37. "user ID and would own all the files under <filename class=\"directory\">"
  38. "$LFS</filename>, thus exposing these files to possible malicious "
  39. "manipulation."
  40. msgstr ""
  41. "目前,<filename class=\"directory\">$LFS</filename> 中整个目录树的所有者都是 "
  42. "<systemitem class=\"username\">lfs</systemitem>,这个用户只在宿主系统存在。如"
  43. "果不改变 <filename class=\"directory\">$LFS</filename> 中文件和目录的所有权,"
  44. "它们会被一个没有对应账户的用户 ID 所有。这是危险的,因为后续创建的新用户可能"
  45. "获得这个用户 ID,并成为 <filename class=\"directory\">$LFS</filename> 中全部"
  46. "文件的所有者,从而产生恶意操作这些文件的可能。"
  47. #. type: Content of: <sect1><para>
  48. msgid ""
  49. "To address this issue, change the ownership of the <filename class="
  50. "\"directory\">$LFS/*</filename> directories to user <systemitem class="
  51. "\"username\">root</systemitem> by running the following command:"
  52. msgstr ""
  53. "为了避免这样的问题,执行以下命令,将 <filename class=\"directory\">$LFS/*</"
  54. "filename> 目录的所有者改变为 <systemitem class=\"username\">root</"
  55. "systemitem>:"
  56. #. type: Content of: <sect1><screen>
  57. #, no-wrap
  58. msgid ""
  59. "<userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}\n"
  60. "case $(uname -m) in\n"
  61. " x86_64) chown -R root:root $LFS/lib64 ;;\n"
  62. "esac</userinput>"
  63. msgstr ""
  64. "<userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}\n"
  65. "case $(uname -m) in\n"
  66. " x86_64) chown -R root:root $LFS/lib64 ;;\n"
  67. "esac</userinput>"