aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/coreutils.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter08/coreutils.xml')
-rw-r--r--chapter08/coreutils.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml
index c72041b3b..7d715f2f3 100644
--- a/chapter08/coreutils.xml
+++ b/chapter08/coreutils.xml
@@ -116,7 +116,7 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \
these tests are not skipped, add a temporary group and make the
user <systemitem class="username">tester</systemitem> a part of it:</para>
-<screen><userinput remap="test">echo "dummy:x:102:tester" &gt;&gt; /etc/group</userinput></screen>
+<screen><userinput remap="test">groupadd -g 102 dummy -U tester</userinput></screen>
<para>Fix some of the permissions so that the non-&root; user can
compile and run the tests:</para>
@@ -134,7 +134,8 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \
<para>Remove the temporary group:</para>
-<screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
+<screen><userinput remap="test">groupdel dummy</userinput></screen>
+
<para>Install the package:</para>
<screen><userinput remap="install">make install</userinput></screen>