aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/bash.xml
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2020-05-29 08:06:18 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2020-05-29 08:06:18 +0000
commit7406bece6f21f8edefd3b78480ba30cc704fb233 (patch)
tree3a2165a204e973477cca4e1342995226d3ace4e0 /chapter06/bash.xml
parent51c960dfdf415e0a793d99ccc6e5e80f41649504 (diff)
Add an unprivileged user, tester, at the
beginning of Chapter 6 for running some tests. This user is then removed at the end of the chapter. Update to zstd-1.4.5. Fixes Update to util-linux-2.35.2. Fixes Update to bison-3.6.2. Fixes Update to linux-5.6.15. Fixes git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11864 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/bash.xml')
-rw-r--r--chapter06/bash.xml16
1 files changed, 7 insertions, 9 deletions
diff --git a/chapter06/bash.xml b/chapter06/bash.xml
index 0c7f7f062..03a3e0614 100644
--- a/chapter06/bash.xml
+++ b/chapter06/bash.xml
@@ -73,23 +73,21 @@
<para>Skip down to <quote>Install the
package</quote> if not running the test suite.</para>
- <para>To prepare the tests, ensure that the <systemitem class="username">nobody</systemitem> user can write to the sources tree:</para>
+ <para>To prepare the tests, ensure that the <systemitem class="username">tester</systemitem> user can write to the sources tree:</para>
-<screen><userinput remap="test">chown -Rv nobody .</userinput></screen>
+<screen><userinput remap="test">chown -Rv tester .</userinput></screen>
<para>Now, run the tests as the <systemitem
- class="username">nobody</systemitem> user:</para>
-
-<screen><userinput remap="test">su nobody -s /bin/bash &lt;&lt; EOF
-PATH=$PATH HOME=/home make tests
-EOF</userinput></screen>
+ class="username">tester</systemitem> user:</para>
+<screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen>
+<!--
<para>The <command>su</command> command above is slightly different from
other places in the book. The
reason is that the <option>-c</option> option runs the command without
a controlling terminal, while the bash test suite needs one.</para>
-
- <para>Nevertheless, the <systemitem class="username">nobody</systemitem>
+-->
+ <para>The <systemitem class="username">tester</systemitem>
user does not have enough permissions for all the tests to pass. This shows
up in some <quote>diff</quote> output in four test results.</para>