Author: pierre Date: Sat May 30 11:14:52 2020 New Revision: 11877 Log: Fix groups for user tester, and a forgotten tester in sed tests
Modified: trunk/BOOK/chapter06/coreutils.xml trunk/BOOK/chapter06/createfiles.xml trunk/BOOK/chapter06/sed.xml Modified: trunk/BOOK/chapter06/coreutils.xml ============================================================================== --- trunk/BOOK/chapter06/coreutils.xml Sat May 30 07:44:59 2020 (r11876) +++ trunk/BOOK/chapter06/coreutils.xml Sat May 30 11:14:52 2020 (r11877) @@ -116,7 +116,7 @@ these tests are not skipped we'll add a temporary group and make the user <systemitem class="username">tester</systemitem> a part of it:</para> -<screen><userinput remap="test">echo "tester:x:1000:nogroup" >> /etc/group</userinput></screen> +<screen><userinput remap="test">echo "dummy:x:1000:tester" >> /etc/group</userinput></screen> <para>Fix some of the permissions so that the non-root user can compile and run the tests:</para> @@ -132,11 +132,11 @@ partially built system environment like the chroot environment here, but passes if run at the end of this chapter. The test program tty.sh is also known to fail.</para> +--> <para>Remove the temporary group:</para> <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen> ---> <para>Install the package:</para> <screen><userinput remap="install">make install</userinput></screen> Modified: trunk/BOOK/chapter06/createfiles.xml ============================================================================== --- trunk/BOOK/chapter06/createfiles.xml Sat May 30 07:44:59 2020 (r11876) +++ trunk/BOOK/chapter06/createfiles.xml Sat May 30 11:14:52 2020 (r11877) @@ -346,7 +346,7 @@ user here and delete this account at the end of the chapter.</para> <screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd -echo "tester:x:101:dummy" >> /etc/group +echo "tester:x:101:" >> /etc/group install -o tester -d /home/tester</userinput></screen> <para>To remove the <quote>I have no name!</quote> prompt, start a new Modified: trunk/BOOK/chapter06/sed.xml ============================================================================== --- trunk/BOOK/chapter06/sed.xml Sat May 30 07:44:59 2020 (r11876) +++ trunk/BOOK/chapter06/sed.xml Sat May 30 11:14:52 2020 (r11877) @@ -56,7 +56,7 @@ <para>To test the results, issue:</para> <screen><userinput remap="test">chown -Rv tester . -su -c "PATH=$PATH make check"</userinput></screen> +su tester -c "PATH=$PATH make check"</userinput></screen> <para>Install the package and its documentation:</para> -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page