From 4b3ac5083d33ef4ee6b1f9784e196cfb1717c8d1 Mon Sep 17 00:00:00 2001 From: Zack Winkles Date: Wed, 16 Jun 2004 13:54:27 +0000 Subject: [PATCH] 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 --- chapter01/changelog.xml | 4 ++++ chapter05/util-linux.xml | 3 ++- chapter06/coreutils.xml | 3 ++- chapter06/man.xml | 3 ++- chapter06/shadow.xml | 3 ++- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 47cbfc5de..7937da4c0 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -75,6 +75,10 @@ first a summary, then a detailed log. +June 16, 2004 [winkie]: Use chmod to fix the +permissions of various executable scripts when doing inline stream editing. + + June 16, 2004 [winkie]: Upgraded to Linux 2.6.7 and dropped the FPU patch. diff --git a/chapter05/util-linux.xml b/chapter05/util-linux.xml index 7561ddd84..0c5624d0d 100644 --- a/chapter05/util-linux.xml +++ b/chapter05/util-linux.xml @@ -36,7 +36,8 @@ by applying the following patch: from the /tools directory. This is fixed by altering the configure script: -sed -i 's@/usr/include@/tools/include@g' configure +sed -i 's@/usr/include@/tools/include@g' configure +chmod 755 configure Prepare Util-linux for compilation: 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: When you're done testing, remove the dummy user and groups: -sed -i '/dummy/d' /etc/passwd /etc/group +sed -i '/dummy/d' /etc/passwd /etc/group +chmod 644 /etc/passwd /etc/group Install the package: 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: switch to the PAGER variable so that escape sequences are properly handled by Less: -sed -i 's@-is@&R@g' configure +sed -i 's@-is@&R@g' configure +chmod 755 configure The third is also a sed substitution to comment out the MANPATH /usr/man line in the man.conf 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): 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 + -e 's@/var/spool/mail@/var/mail@' /etc/login.defs +chmod 644 /etc/login.defs Move some misplaced symlinks/programs to their proper locations: