aboutsummaryrefslogtreecommitdiffstats
path: root/chapter04
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2004-06-19 20:48:04 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2004-06-19 20:48:04 +0000
commit1fd5d19b67463e496ac4fbd82306677c615cf028 (patch)
tree3248a41268978f76274056790a9c72bca003b66e /chapter04
parent0c012ac2c96978a0d297cdd21888564f8267bc8c (diff)
Add user lfs to group lfs (fixes bug #856)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3820 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter04')
-rw-r--r--chapter04/addinguser.xml14
1 files changed, 11 insertions, 3 deletions
diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml
index 0a2688efc..c0dc9ad67 100644
--- a/chapter04/addinguser.xml
+++ b/chapter04/addinguser.xml
@@ -11,11 +11,13 @@
can damage or even wreck your system. Therefore we recommend that you
build the packages in this chapter as an unprivileged user. You could
of course use your own user name, but to make it easier to set up a clean
-work environment we'll create a new user <emphasis>lfs</emphasis> and
+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 command to add the new user:</para>
+issue the following commands to add the new user:</para>
-<screen><userinput>useradd -s /bin/bash -m -k /dev/null lfs</userinput></screen>
+<screen><userinput>groupadd lfs
+useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
<para>The meaning of the switches:</para>
@@ -28,6 +30,12 @@ issue the following command to add the new user:</para>
</varlistentry>
<varlistentry>
+<term><parameter>-g lfs</parameter></term>
+<listitem><para>This adds user <emphasis>lfs</emphasis> to group
+<emphasis>lfs</emphasis></para></listitem>
+</varlistentry>
+
+<varlistentry>
<term><parameter>-m</parameter></term>
<listitem><para>This creates a home
directory for <emphasis>lfs</emphasis>.</para></listitem>