addinguser.po 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:11
  20. msgid "Adding the LFS User"
  21. msgstr ""
  22. #. type: Content of: <sect1><para>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:13
  24. msgid ""
  25. "When logged in as user <systemitem class=\"username\">root</systemitem>, "
  26. "making a single mistake can damage or destroy a system. Therefore, the "
  27. "packages in the next two chapters are built as an unprivileged user. You "
  28. "could use your own user name, but to make it easier to set up a clean "
  29. "working environment, create a new user called <systemitem "
  30. "class=\"username\">lfs</systemitem> as a member of a new group (also named "
  31. "<systemitem class=\"groupname\">lfs</systemitem>) and use this user during "
  32. "the installation process. As <systemitem "
  33. "class=\"username\">root</systemitem>, issue the following commands to add "
  34. "the new user:"
  35. msgstr ""
  36. #. type: Content of: <sect1><screen>
  37. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:23
  38. #, no-wrap
  39. msgid ""
  40. "<userinput>groupadd lfs\n"
  41. "useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput>"
  42. msgstr ""
  43. #. type: Content of: <sect1><variablelist><title>
  44. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:27
  45. msgid "The meaning of the command line options:"
  46. msgstr ""
  47. #. type: Content of: <sect1><variablelist><varlistentry><term>
  48. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:30
  49. msgid "<parameter>-s /bin/bash</parameter>"
  50. msgstr ""
  51. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  52. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:32
  53. msgid ""
  54. "This makes <command>bash</command> the default shell for user <systemitem "
  55. "class=\"username\">lfs</systemitem>."
  56. msgstr ""
  57. #. type: Content of: <sect1><variablelist><varlistentry><term>
  58. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:38
  59. msgid "<parameter>-g lfs</parameter>"
  60. msgstr ""
  61. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  62. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:40
  63. msgid ""
  64. "This option adds user <systemitem class=\"username\">lfs</systemitem> to "
  65. "group <systemitem class=\"groupname\">lfs</systemitem>."
  66. msgstr ""
  67. #. type: Content of: <sect1><variablelist><varlistentry><term>
  68. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:46
  69. msgid "<parameter>-m</parameter>"
  70. msgstr ""
  71. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  72. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:48
  73. msgid ""
  74. "This creates a home directory for <systemitem "
  75. "class=\"username\">lfs</systemitem>."
  76. msgstr ""
  77. #. type: Content of: <sect1><variablelist><varlistentry><term>
  78. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:54
  79. msgid "<parameter>-k /dev/null</parameter>"
  80. msgstr ""
  81. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  82. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:56
  83. msgid ""
  84. "This parameter prevents possible copying of files from a skeleton directory "
  85. "(default is <filename class=\"directory\">/etc/skel</filename>) by changing "
  86. "the input location to the special null device."
  87. msgstr ""
  88. #. type: Content of: <sect1><variablelist><varlistentry><term>
  89. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:63
  90. msgid "<parameter>lfs</parameter>"
  91. msgstr ""
  92. #. type: Content of: <sect1><variablelist><varlistentry><listitem><para>
  93. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:65
  94. msgid "This is the actual name for the created user."
  95. msgstr ""
  96. #. type: Content of: <sect1><para>
  97. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:71
  98. msgid ""
  99. "To log in as <systemitem class=\"username\">lfs</systemitem> (as opposed to "
  100. "switching to user <systemitem class=\"username\">lfs</systemitem> when "
  101. "logged in as <systemitem class=\"username\">root</systemitem>, which does "
  102. "not require the <systemitem class=\"username\">lfs</systemitem> user to have "
  103. "a password), give <systemitem class=\"username\">lfs</systemitem> a "
  104. "password:"
  105. msgstr ""
  106. #. type: Content of: <sect1><screen>
  107. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:77
  108. #, no-wrap
  109. msgid "<userinput>passwd lfs</userinput>"
  110. msgstr ""
  111. #. type: Content of: <sect1><para>
  112. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:79
  113. msgid ""
  114. "Grant <systemitem class=\"username\">lfs</systemitem> full access to all "
  115. "directories under <filename class=\"directory\">$LFS</filename> by making "
  116. "<systemitem class=\"username\">lfs</systemitem> the directory owner:"
  117. msgstr ""
  118. #. type: Content of: <sect1><screen>
  119. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:83
  120. #, no-wrap
  121. msgid ""
  122. "<userinput>chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,tools}\n"
  123. "case $(uname -m) in\n"
  124. " x86_64) chown -v lfs $LFS/lib64 ;;\n"
  125. "esac</userinput>"
  126. msgstr ""
  127. #. type: Content of: <sect1><para>
  128. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:88
  129. msgid ""
  130. "If a separate working directory was created as suggested, give user "
  131. "<systemitem class=\"username\">lfs</systemitem> ownership of this directory:"
  132. msgstr ""
  133. #. type: Content of: <sect1><screen>
  134. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:92
  135. #, no-wrap
  136. msgid "<userinput>chown -v lfs $LFS/sources</userinput>"
  137. msgstr ""
  138. #. type: Content of: <sect1><note><para>
  139. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:94
  140. msgid ""
  141. "In some host systems, the following command does not complete properly and "
  142. "suspends the login to the lfs user to the background. If the prompt "
  143. "\"lfs:~$\" does not appear immediately, entering the <command>fg</command> "
  144. "command will fix the issue."
  145. msgstr ""
  146. #. type: Content of: <sect1><para>
  147. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:99
  148. msgid ""
  149. "Next, login as user <systemitem class=\"username\">lfs</systemitem>. This "
  150. "can be done via a virtual console, through a display manager, or with the "
  151. "following substitute/switch user command:"
  152. msgstr ""
  153. #. type: Content of: <sect1><screen>
  154. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:103
  155. #, no-wrap
  156. msgid "<userinput>su - lfs</userinput>"
  157. msgstr ""
  158. #. type: Content of: <sect1><para>
  159. #: /home/xry111/svn-repos/LFS-BOOK/chapter04/addinguser.xml:105
  160. msgid ""
  161. "The <quote><parameter>-</parameter></quote> instructs <command>su</command> "
  162. "to start a login shell as opposed to a non-login shell. The difference "
  163. "between these two types of shells can be found in detail in "
  164. "<filename>bash(1)</filename> and <command>info bash</command>."
  165. msgstr ""