aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
authorZack Winkles <winkie@linuxfromscratch.org>2004-06-16 13:54:27 +0000
committerZack Winkles <winkie@linuxfromscratch.org>2004-06-16 13:54:27 +0000
commit4b3ac5083d33ef4ee6b1f9784e196cfb1717c8d1 (patch)
treea92ee3aa686394cfbd1f43100c103dbb3624b022 /chapter06
parent9c73bc302240efec59a1dfb5d24d0fefb3412c96 (diff)
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
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/coreutils.xml3
-rw-r--r--chapter06/man.xml3
-rw-r--r--chapter06/shadow.xml3
3 files changed, 6 insertions, 3 deletions
diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml
index 984981273..7437cd451 100644
--- a/chapter06/coreutils.xml
+++ b/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>
diff --git a/chapter06/man.xml b/chapter06/man.xml
index 54f7174a6..5050a6c52 100644
--- a/chapter06/man.xml
+++ b/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
diff --git a/chapter06/shadow.xml b/chapter06/shadow.xml
index 1ce985807..f3adc61f8 100644
--- a/chapter06/shadow.xml
+++ b/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>