aboutsummaryrefslogtreecommitdiffstats
path: root/chapter04/addinguser.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter04/addinguser.xml')
-rw-r--r--chapter04/addinguser.xml15
1 files changed, 9 insertions, 6 deletions
diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml
index a26aa55a2..6a163f46b 100644
--- a/chapter04/addinguser.xml
+++ b/chapter04/addinguser.xml
@@ -11,8 +11,8 @@
<title>Adding the LFS User</title>
<para>When logged in as user <systemitem class="username">root</systemitem>,
- making a single mistake can damage or destroy a system. Therefore, we
- recommend building the packages in the next chapter as an unprivileged user.
+ making a single mistake can damage or destroy a system. Therefore,
+ the packages in the next two chapters are built as an unprivileged user.
You could use your own user name, but to make it easier to set up a clean
working environment, create a new user called <systemitem
class="username">lfs</systemitem> as a member of a new group (also named
@@ -62,7 +62,7 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
<varlistentry>
<term><parameter>lfs</parameter></term>
<listitem>
- <para>This is the actual name for the created group and user.</para>
+ <para>This is the actual name for the created user.</para>
</listitem>
</varlistentry>
@@ -77,10 +77,13 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
<screen role="nodump"><userinput>passwd lfs</userinput></screen>
<para>Grant <systemitem class="username">lfs</systemitem> full access to
- <filename class="directory">$LFS/tools</filename> by making
+ all directories under <filename class="directory">$LFS</filename> by making
<systemitem class="username">lfs</systemitem> the directory owner:</para>
-<screen><userinput>chown -v lfs $LFS/tools</userinput></screen>
+<screen><userinput>chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,tools}
+case $(uname -m) in
+ x86_64) chown -v lfs $LFS/lib64 ;;
+esac</userinput></screen>
<para>If a separate working directory was created as suggested, give
user <systemitem class="username">lfs</systemitem> ownership of this
@@ -95,7 +98,7 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
<para>Next, login as user <systemitem class="username">lfs</systemitem>.
This can be done via a virtual console, through a display manager, or with
- the following substitute user command:</para>
+ the following substitute/switch user command:</para>
<screen role="nodump"><userinput>su - lfs</userinput></screen>