aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/shadow.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/shadow.xml')
-rw-r--r--chapter06/shadow.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter06/shadow.xml b/chapter06/shadow.xml
index 0018929a2..1ce985807 100644
--- a/chapter06/shadow.xml
+++ b/chapter06/shadow.xml
@@ -66,9 +66,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>sed -e 's%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%' \
- -e 's%/var/spool/mail%/var/mail%' \
- etc/login.defs.linux &gt; /etc/login.defs</userinput></screen>
+<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>
<para>Move some misplaced symlinks/programs to their proper locations:</para>