|
@@ -7,6 +7,7 @@
|
|
<title>Adding the user lfs</title>
|
|
<title>Adding the user lfs</title>
|
|
<?dbhtml filename="addinguser.html"?>
|
|
<?dbhtml filename="addinguser.html"?>
|
|
|
|
|
|
|
|
+<!--
|
|
<para>When logged in as <emphasis>root</emphasis>, making a single mistake
|
|
<para>When logged in as <emphasis>root</emphasis>, making a single mistake
|
|
can damage or even wreck your system. Therefore we recommend that you
|
|
can damage or even wreck your system. Therefore we recommend that you
|
|
build the packages in this chapter as an unprivileged user. You could
|
|
build the packages in this chapter as an unprivileged user. You could
|
|
@@ -15,10 +16,12 @@ work environment we'll create a new user <emphasis>lfs</emphasis> as a
|
|
member of a new group (also named <emphasis>lfs</emphasis>) and
|
|
member of a new group (also named <emphasis>lfs</emphasis>) and
|
|
use this one during the installation process. As <emphasis>root</emphasis>,
|
|
use this one during the installation process. As <emphasis>root</emphasis>,
|
|
issue the following commands to add the new user:</para>
|
|
issue the following commands to add the new user:</para>
|
|
|
|
+-->
|
|
|
|
|
|
<screen><userinput>groupadd lfs
|
|
<screen><userinput>groupadd lfs
|
|
useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
|
|
useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
|
|
|
|
|
|
|
|
+<!--
|
|
<para>The meaning of the switches:</para>
|
|
<para>The meaning of the switches:</para>
|
|
|
|
|
|
<variablelist>
|
|
<variablelist>
|
|
@@ -52,27 +55,36 @@ the special null device.</para></listitem>
|
|
|
|
|
|
<para>If you want to be able to log in as <emphasis>lfs</emphasis>, then give
|
|
<para>If you want to be able to log in as <emphasis>lfs</emphasis>, then give
|
|
<emphasis>lfs</emphasis> a password:</para>
|
|
<emphasis>lfs</emphasis> a password:</para>
|
|
|
|
+-->
|
|
|
|
|
|
<screen><userinput>passwd lfs</userinput></screen>
|
|
<screen><userinput>passwd lfs</userinput></screen>
|
|
|
|
|
|
|
|
+<!--
|
|
<para>and grant <emphasis>lfs</emphasis> full access to
|
|
<para>and grant <emphasis>lfs</emphasis> full access to
|
|
<filename class="directory">$LFS/tools</filename> by making
|
|
<filename class="directory">$LFS/tools</filename> by making
|
|
<emphasis>lfs</emphasis> the directory owner:</para>
|
|
<emphasis>lfs</emphasis> the directory owner:</para>
|
|
|
|
+-->
|
|
|
|
|
|
<screen><userinput>chown lfs $LFS/tools</userinput></screen>
|
|
<screen><userinput>chown lfs $LFS/tools</userinput></screen>
|
|
|
|
|
|
|
|
+<!--
|
|
<para>If you made a separate working directory as suggested, give user
|
|
<para>If you made a separate working directory as suggested, give user
|
|
<emphasis>lfs</emphasis> ownership of this directory too:</para>
|
|
<emphasis>lfs</emphasis> ownership of this directory too:</para>
|
|
|
|
+-->
|
|
|
|
|
|
<screen><userinput>chown lfs $LFS/sources</userinput></screen>
|
|
<screen><userinput>chown lfs $LFS/sources</userinput></screen>
|
|
|
|
|
|
|
|
+<!--
|
|
<para>Next, login as user <emphasis>lfs</emphasis>. This can be done via a
|
|
<para>Next, login as user <emphasis>lfs</emphasis>. This can be done via a
|
|
virtual console, through a display manager, or with the following substitute
|
|
virtual console, through a display manager, or with the following substitute
|
|
user command:</para>
|
|
user command:</para>
|
|
|
|
+-->
|
|
|
|
|
|
<screen><userinput>su - lfs</userinput></screen>
|
|
<screen><userinput>su - lfs</userinput></screen>
|
|
|
|
|
|
|
|
+<!--
|
|
<para>The <quote><parameter>-</parameter></quote> instructs <command>su</command> to
|
|
<para>The <quote><parameter>-</parameter></quote> instructs <command>su</command> to
|
|
start a <emphasis>login</emphasis> shell.</para>
|
|
start a <emphasis>login</emphasis> shell.</para>
|
|
|
|
+-->
|
|
|
|
|
|
</sect1>
|
|
</sect1>
|