diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2016-02-27 04:11:22 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2016-02-27 04:11:22 +0000 |
commit | b057615cc8318a54af9d82107c00f65a5843f686 (patch) | |
tree | a2d2184f6dc0f11a539181ea2d1b1cdcf775e72b /chapter06 | |
parent | 5b7d4da53d4b85613e3f998eb554d13cb62de16c (diff) |
Prevent attr and shadow from overwriting man pages installed by the man-pages
package.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11026 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/attr.xml | 2 | ||||
-rw-r--r-- | chapter06/shadow.xml | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/chapter06/attr.xml b/chapter06/attr.xml index 48d64fe63..03044a745 100644 --- a/chapter06/attr.xml +++ b/chapter06/attr.xml @@ -49,7 +49,7 @@ <para>Prevent installation of manual pages that were already installed by the <xref linkend="man-pages"/> package:</para> -<screen><userinput remap="pre">sed -i -e "/SUBDIRS/s|man2||" man/Makefile</userinput></screen> +<screen><userinput remap="pre">sed -i -e "/SUBDIRS/s|man[25]||g" man/Makefile</userinput></screen> <para>Prepare Attr for compilation:</para> diff --git a/chapter06/shadow.xml b/chapter06/shadow.xml index d01ef11ee..66482202c 100644 --- a/chapter06/shadow.xml +++ b/chapter06/shadow.xml @@ -50,10 +50,14 @@ </note> <para>Disable the installation of the <command>groups</command> program - and its man pages, as Coreutils provides a better version:</para> + and its man pages, as Coreutils provides a better version. Also + Prevent the installation of manual pages that were already installed by the + <xref linkend="man-pages"/> package:</para> <screen><userinput remap="pre">sed -i 's/groups$(EXEEXT) //' src/Makefile.in -find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;</userinput></screen> +find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; +find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; +find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;</userinput></screen> <para id="shadow-login_defs">Instead of using the default <emphasis>crypt</emphasis> method, use the more secure |