aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
authorJim Gifford <jim@linuxfromscratch.org>2004-12-07 17:35:36 +0000
committerJim Gifford <jim@linuxfromscratch.org>2004-12-07 17:35:36 +0000
commit82167e698f44c059a15b93d321548a71aad3b850 (patch)
treeded8420216bbfe2ac93ba87aee2a0689a9f79c91 /chapter06
parentb3268eb03f8c8de3967e40fcad12827978d63072 (diff)
Updated: Shadow
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4362 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/shadow.xml8
1 files changed, 4 insertions, 4 deletions
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):</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>
+<screen><userinput>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</userinput></screen>
<para>Move some misplaced symlinks/programs to their proper locations:</para>
@@ -71,7 +71,7 @@ sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
<para>As some packages expect to find the just-moved libraries in
<filename class="directory">/usr/lib</filename>, create the following symlinks:</para>
-<screen><userinput>rm /usr/lib/libshadow.so
+<screen><userinput>rm /lib/libshadow.so
ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen>
<para>The <parameter>-D</parameter> option of the <command>useradd</command> program requires this