ソースを参照

Fix groups for user tester, and a forgotten tester in sed tests

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11877 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Pierre Labastie 5 年 前
コミット
338c63fb69
3 ファイル変更4 行追加4 行削除
  1. 2 2
      chapter06/coreutils.xml
  2. 1 1
      chapter06/createfiles.xml
  3. 1 1
      chapter06/sed.xml

+ 2 - 2
chapter06/coreutils.xml

@@ -116,7 +116,7 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \
     these tests are not skipped we'll add a temporary group and make the
     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>
     user <systemitem class="username">tester</systemitem> a part of it:</para>
 
 
-<screen><userinput remap="test">echo "tester:x:1000:nogroup" &gt;&gt; /etc/group</userinput></screen>
+<screen><userinput remap="test">echo "dummy:x:1000:tester" &gt;&gt; /etc/group</userinput></screen>
 
 
     <para>Fix some of the permissions so that the non-root user can compile and
     <para>Fix some of the permissions so that the non-root user can compile and
     run the tests:</para>
     run the tests:</para>
@@ -132,11 +132,11 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \
     partially built system environment like the chroot environment here, but
     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
     passes if run at the end of this chapter.  The test program tty.sh is
     also known to fail.</para>
     also known to fail.</para>
+-->
 
 
     <para>Remove the temporary group:</para>
     <para>Remove the temporary group:</para>
 
 
 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
--->
     <para>Install the package:</para>
     <para>Install the package:</para>
 
 
 <screen><userinput remap="install">make install</userinput></screen>
 <screen><userinput remap="install">make install</userinput></screen>

+ 1 - 1
chapter06/createfiles.xml

@@ -346,7 +346,7 @@ EOF</userinput></screen>
   user here and delete this account at the end of the chapter.</para>
   user here and delete this account at the end of the chapter.</para>
 
 
 <screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
 <screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
-echo "tester:x:101:dummy" &gt;&gt; /etc/group
+echo "tester:x:101:" &gt;&gt; /etc/group
 install -o tester -d /home/tester</userinput></screen>
 install -o tester -d /home/tester</userinput></screen>
 
 
   <para>To remove the <quote>I have no name!</quote> prompt, start a new
   <para>To remove the <quote>I have no name!</quote> prompt, start a new

+ 1 - 1
chapter06/sed.xml

@@ -56,7 +56,7 @@ make html</userinput></screen>
     <para>To test the results, issue:</para>
     <para>To test the results, issue:</para>
 
 
 <screen><userinput remap="test">chown -Rv tester .
 <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>
     <para>Install the package and its documentation:</para>