diff options
Diffstat (limited to 'chapter04/addinguser.xml')
-rw-r--r-- | chapter04/addinguser.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index c0dc9ad67..ad0a3e836 100644 --- a/chapter04/addinguser.xml +++ b/chapter04/addinguser.xml @@ -7,6 +7,7 @@ <title>Adding the user lfs</title> <?dbhtml filename="addinguser.html"?> +<!-- <para>When logged in as <emphasis>root</emphasis>, making a single mistake can damage or even wreck your system. Therefore we recommend that you 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 use this one during the installation process. As <emphasis>root</emphasis>, issue the following commands to add the new user:</para> +--> <screen><userinput>groupadd lfs useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen> +<!-- <para>The meaning of the switches:</para> <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 <emphasis>lfs</emphasis> a password:</para> +--> <screen><userinput>passwd lfs</userinput></screen> +<!-- <para>and grant <emphasis>lfs</emphasis> full access to <filename class="directory">$LFS/tools</filename> by making <emphasis>lfs</emphasis> the directory owner:</para> +--> <screen><userinput>chown lfs $LFS/tools</userinput></screen> +<!-- <para>If you made a separate working directory as suggested, give user <emphasis>lfs</emphasis> ownership of this directory too:</para> +--> <screen><userinput>chown lfs $LFS/sources</userinput></screen> +<!-- <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 user command:</para> +--> <screen><userinput>su - lfs</userinput></screen> +<!-- <para>The <quote><parameter>-</parameter></quote> instructs <command>su</command> to start a <emphasis>login</emphasis> shell.</para> +--> </sect1> |