From 82167e698f44c059a15b93d321548a71aad3b850 Mon Sep 17 00:00:00 2001 From: Jim Gifford Date: Tue, 7 Dec 2004 17:35:36 +0000 Subject: Updated: Shadow git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4362 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 3 +++ chapter06/shadow.xml | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 855f47377..2f55b3d58 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -41,6 +41,9 @@ of the LFS Book. --> +December 7th, 2004 [jim]: Fixed type in shadow. +Made recommended change from Robert Connolly on sed for shadow. + December 6th, 2004 [jeremy]: Fixed incorrect CR in ch 6 binutils, causing the patch name to be split on 2 lines. Thanks Robert Connolly! diff --git a/chapter06/shadow.xml b/chapter06/shadow.xml index c469fb3e8..0f190100b 100644 --- a/chapter06/shadow.xml +++ b/chapter06/shadow.xml @@ -56,9 +56,9 @@ both these things by changing the relevant configuration file while copying it to its destination (it's probably better to cut-and-paste this rather than try 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 +sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \ + -e 's@/var/spool/mail@/var/mail@' /etc/login.defs \ + < etc/login.defs.linux > /etc/login.defs Move some misplaced symlinks/programs to their proper locations: @@ -71,7 +71,7 @@ sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \ As some packages expect to find the just-moved libraries in /usr/lib, create the following symlinks: -rm /usr/lib/libshadow.so +rm /lib/libshadow.so ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so The -D option of the useradd program requires this -- cgit v1.2.3-54-g00ecf