Преглед на файлове

Fix permissions of files that have been edited inline by sed

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3801 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Zack Winkles преди 21 години
родител
ревизия
4b3ac5083d
променени са 5 файла, в които са добавени 12 реда и са изтрити 4 реда
  1. 4 0
      chapter01/changelog.xml
  2. 2 1
      chapter05/util-linux.xml
  3. 2 1
      chapter06/coreutils.xml
  4. 2 1
      chapter06/man.xml
  5. 2 1
      chapter06/shadow.xml

+ 4 - 0
chapter01/changelog.xml

@@ -75,6 +75,10 @@ first a summary, then a detailed log.</para>
 </itemizedlist>
 </listitem>
 
+<listitem><para>June 16, 2004 [winkie]: Use <command>chmod</command> to fix the
+permissions of various executable scripts when doing inline stream editing.
+</para></listitem>
+
 <listitem><para>June 16, 2004 [winkie]: Upgraded to Linux 2.6.7 and dropped the
 FPU patch.</para></listitem>
 

+ 2 - 1
chapter05/util-linux.xml

@@ -36,7 +36,8 @@ by applying the following patch:</para>
 from the <filename class="directory">/tools</filename> directory.  This is fixed by altering the configure
 script:</para>
 
-<screen><userinput>sed -i 's@/usr/include@/tools/include@g' configure</userinput></screen>
+<screen><userinput>sed -i 's@/usr/include@/tools/include@g' configure
+chmod 755 configure</userinput></screen>
 
 <para>Prepare Util-linux for compilation:</para>
 

+ 2 - 1
chapter06/coreutils.xml

@@ -73,7 +73,8 @@ user:</para>
 
 <para>When you're done testing, remove the dummy user and groups:</para>
 
-<screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen>
+<screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group
+chmod 644 /etc/passwd /etc/group</userinput></screen>
 
 <para>Install the package:</para>
 

+ 2 - 1
chapter06/man.xml

@@ -40,7 +40,8 @@ width instead of being limited to 80 characters:</para>
 switch to the <emphasis>PAGER</emphasis> variable so that escape sequences are
 properly handled by Less:</para>
 
-<screen><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
+<screen><userinput>sed -i 's@-is@&amp;R@g' configure
+chmod 755 configure</userinput></screen>
 
 <para>The third is also a sed substitution to comment out the <quote>MANPATH
 /usr/man</quote> line in the <filename>man.conf</filename> file to prevent

+ 2 - 1
chapter06/shadow.xml

@@ -68,7 +68,8 @@ and type it all in):</para>
 
 <screen><userinput>cp etc/login.defs.linux /etc/login.defs
 sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
-    -e 's@/var/spool/mail@/var/mail@' /etc/login.defs</userinput></screen>
+    -e 's@/var/spool/mail@/var/mail@' /etc/login.defs
+chmod 644 /etc/login.defs</userinput></screen>
 
 <para>Move some misplaced symlinks/programs to their proper locations:</para>