| 12345678910111213141516171819202122232425262728293031 | <sect1 id="ch05-addinguser"><title>Adding the user lfs</title><?dbhtml filename="addinguser.html" dir="chapter05"?><para>When logged in as <emphasis>root</emphasis>, making a single mistakecan damage or even wreck your system. Therefore we recommend that youbuild the packages in this chapter as an unprivileged user. You couldof course use your own user name,  but to make it easier to set up a cleanwork environment we'll create a new user <emphasis>lfs</emphasis> anduse this one during the installation process. As <emphasis>root</emphasis>,issue the following commands to add the new user:</para><para><screen><userinput>useradd -s /bin/bash -m lfspasswd lfs</userinput></screen></para><para>Now grant this new user <emphasis>lfs</emphasis> full access to<filename class="directory">$LFS/tools</filename> by giving it ownershipof the directory:</para><para><screen><userinput>chown lfs $LFS/tools</userinput></screen></para><para>Next, login as user <emphasis>lfs</emphasis>. This can be done via avirtual console, through a display manager, or with the following substituteuser command:</para><para><screen><userinput>su - lfs</userinput></screen></para><para>The "<userinput>-</userinput>" instructs <userinput>su</userinput> tostart a new, clean shell.</para></sect1>
 |