Ignore:
Timestamp:
04/03/2007 12:21:48 PM (17 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
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, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, 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:
9e85ca2
Parents:
85d8df5
Message:

Install su from coreutils in chapter 5 as su-tools. Use su-tools to run test suites from coreutils and bash as user nobody. Fixes #1877

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8006 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/coreutils.xml

    r85d8df5 rf4c628c  
    7373<screen><userinput>make</userinput></screen>
    7474
    75     <para>The test suite of Coreutils makes several assumptions about the
    76     presence of system users and groups that are not valid within the minimal
    77     environment that exists at the moment. Therefore, additional items need
    78     to be set up before running the tests. Skip down to <quote>Install the
     75    <para>Skip down to <quote>Install the
    7976    package</quote> if not running the test suite.</para>
    80 
    81     <para>Create two dummy groups and a dummy user:</para>
    82 
    83 <screen><userinput>echo "dummy1:x:1000:" &gt;&gt; /etc/group
    84 echo "dummy2:x:1001:dummy" &gt;&gt; /etc/group
    85 echo "dummy:x:1000:1000::/root:/bin/bash" &gt;&gt; /etc/passwd</userinput></screen>
    8677
    8778    <para>Now the test suite is ready to be run. First, run the tests that are
    8879    meant to be run as user <systemitem class="username">root</systemitem>:</para>
    8980
    90 <screen><userinput>make NON_ROOT_USERNAME=dummy check-root</userinput></screen>
     81<screen><userinput>make NON_ROOT_USERNAME=nobody check-root</userinput></screen>
    9182
    9283    <para>Then run the remainder of the tests as the
    93     <systemitem class="username">dummy</systemitem> user:</para>
    94 
    95 <screen><userinput>src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
    96 
    97     <para>When testing is complete, remove the dummy user and groups:</para>
    98 
    99 <screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen>
     84    <systemitem class="username">nobody</systemitem> user:</para>
     85
     86<screen><userinput>su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
    10087
    10188    <para>Install the package:</para>
Note: See TracChangeset for help on using the changeset viewer.