Changeset c093e6b for chapter04/addinguser.xml
- Timestamp:
- 10/01/2022 10:30:12 PM (19 months ago)
- Branches:
- multilib
- Children:
- f3b2f16
- Parents:
- f29824e (diff), 4349661 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter04/addinguser.xml
rf29824e rc093e6b 15 15 the packages in the next two chapters are built as an unprivileged user. 16 16 You could use your own user name, but to make it easier to set up a clean 17 working environment, create a new user called <systemitem17 working environment, we will create a new user called <systemitem 18 18 class="username">lfs</systemitem> as a member of a new group (also named 19 <systemitem class="groupname">lfs</systemitem>) and use this userduring19 <systemitem class="groupname">lfs</systemitem>) and run commands as &lfs-user; during 20 20 the installation process. As <systemitem class="username">root</systemitem>, 21 21 issue the following commands to add the new user:</para> … … 25 25 26 26 <variablelist> 27 <title>Th e meaning of the command line options:</title>27 <title>This is what the command line options mean:</title> 28 28 29 29 <varlistentry> … … 55 55 <listitem> 56 56 <para>This parameter prevents possible copying of files from a skeleton 57 directory ( default is <filename class="directory">/etc/skel</filename>)57 directory (the default is <filename class="directory">/etc/skel</filename>) 58 58 by changing the input location to the special null device.</para> 59 59 </listitem> … … 69 69 </variablelist> 70 70 71 <para> To log in as <systemitem class="username">lfs</systemitem> (as opposed72 to switching to user <systemitem class="username">lfs</systemitem> when logged73 in as <systemitem class="username">root</systemitem>, which does not require74 the <systemitem class="username">lfs</systemitem> user to have a password),75 give <systemitem class="username">lfs</systemitem> apassword:</para>71 <para>If you want to log in as &lfs-user; or switch to &lfs-user; from a 72 non-&root; user (as opposed to switching to user &lfs-user; 73 when logged in as &root;, which does not require the &lfs-user; user to 74 have a password), you need to set a password of &lfs-user;. Issue the 75 following command as the &root; user to set the password:</para> 76 76 77 77 <screen role="nodump"><userinput>passwd lfs</userinput></screen> 78 78 79 79 <para>Grant <systemitem class="username">lfs</systemitem> full access to 80 all directories under <filename class="directory">$LFS</filename> by making81 <systemitem class="username">lfs</systemitem> the directoryowner:</para>80 all the directories under <filename class="directory">$LFS</filename> by making 81 <systemitem class="username">lfs</systemitem> the owner:</para> 82 82 83 83 <screen><userinput>chown -v lfs $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} … … 89 89 <screen arch="ml_all" ><userinput>chown -v lfs $LFS/{lib32,libx32}</userinput></screen> 90 90 91 <note><para>In some host systems, the followingcommand does not complete92 properly and suspends the login tothe &lfs-user; user to the background.91 <note><para>In some host systems, the following <command>su</command> command does not complete 92 properly and suspends the login for the &lfs-user; user to the background. 93 93 If the prompt "lfs:~$" does not appear immediately, entering the 94 94 <command>fg</command> command will fix the issue.</para></note> 95 95 96 <para>Next, login as user <systemitem class="username">lfs</systemitem>.97 This can be done via a virtual console, through a display manager, or with98 the followingsubstitute/switch user command:</para>96 <para>Next, start a shell running as user &lfs-user;. This can be done by 97 logging in as &lfs-user; on a virtual console, or with the following 98 substitute/switch user command:</para> 99 99 100 100 <screen role="nodump"><userinput>su - lfs</userinput></screen> … … 102 102 <para>The <quote><parameter>-</parameter></quote> instructs 103 103 <command>su</command> to start a login shell as opposed to a non-login shell. 104 The difference between these two types of shells can be found in detail in104 The difference between these two types of shells is described in detail in 105 105 <filename>bash(1)</filename> and <command>info bash</command>.</para> 106 106
Note:
See TracChangeset
for help on using the changeset viewer.