Ignore:
Timestamp:
05/29/2020 08:06:18 AM (4 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
5f24c50
Parents:
51c960d
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/coreutils.xml

    r51c960d r7406bec  
    109109    meant to be run as user <systemitem class="username">root</systemitem>:</para>
    110110
    111 <screen><userinput remap="test">make NON_ROOT_USERNAME=nobody check-root</userinput></screen>
     111<screen><userinput remap="test">make NON_ROOT_USERNAME=tester check-root</userinput></screen>
    112112
    113113    <para>We're going to run the remainder of the tests as the
    114     <systemitem class="username">nobody</systemitem> user. Certain tests,
     114    <systemitem class="username">tester</systemitem> user. Certain tests,
    115115    however, require that the user be a member of more than one group. So that
    116116    these tests are not skipped we'll add a temporary group and make the
    117     user <systemitem class="username">nobody</systemitem> a part of it:</para>
    118 
    119 <screen><userinput remap="test">echo "dummy:x:1000:nobody" &gt;&gt; /etc/group</userinput></screen>
     117    user <systemitem class="username">tester</systemitem> a part of it:</para>
     118
     119<screen><userinput remap="test">echo "tester:x:1000:nogroup" &gt;&gt; /etc/group</userinput></screen>
    120120
    121121    <para>Fix some of the permissions so that the non-root user can compile and
    122122    run the tests:</para>
    123123
    124 <screen><userinput remap="test">chown -Rv nobody . </userinput></screen>
     124<screen><userinput remap="test">chown -Rv tester . </userinput></screen>
    125125
    126126    <para>Now run the tests. Make sure the PATH in the <userinput>su</userinput>
    127127    environment includes /tools/bin.</para>
    128128
    129 <screen><userinput remap="test">su nobody -s /bin/bash -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
     129<screen><userinput remap="test">su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
    130130<!--
    131131    <para>The test program test-getlogin is known to fail in a
     
    133133    passes if run at the end of this chapter.  The test program tty.sh is
    134134    also known to fail.</para>
     135
     136    <para>Remove the temporary group:</para>
     137
     138<screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
    135139-->
    136     <para>Remove the temporary group:</para>
    137 
    138 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
    139 
    140140    <para>Install the package:</para>
    141141
Note: See TracChangeset for help on using the changeset viewer.