aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/grep-inst.xml1
-rw-r--r--chapter06/shadowpwd-exp.xml8
-rw-r--r--chapter06/shadowpwd-inst.xml10
3 files changed, 10 insertions, 9 deletions
diff --git a/chapter06/grep-inst.xml b/chapter06/grep-inst.xml
index 17885b7f5..69a616a33 100644
--- a/chapter06/grep-inst.xml
+++ b/chapter06/grep-inst.xml
@@ -5,6 +5,7 @@
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin &amp;&amp;
make &amp;&amp;
+rm /bin/egrep /bin/fgrep &amp;&amp;
make install</userinput></screen></para>
</sect2>
diff --git a/chapter06/shadowpwd-exp.xml b/chapter06/shadowpwd-exp.xml
index 3defeb609..2ab8ca54d 100644
--- a/chapter06/shadowpwd-exp.xml
+++ b/chapter06/shadowpwd-exp.xml
@@ -1,11 +1,6 @@
<sect2>
<title>Command explanations</title>
-<para><userinput>sed 's/\(.*\) (nflg || \(.*\))\(.*\)/\1\2\3/'
-src/useradd.c.backup &gt; src/useradd.c &amp;&amp;</userinput>:
-This sed is used to fix a compilation bug which occurs due to a
-variable (nflg) being used but not defined.</para>
-
<para><userinput>cp limits login.access /etc:</userinput> These files
were not installed during the installation of the package so we copy
them manually as those files are used to configure authentication
@@ -15,8 +10,7 @@ details on the system.</para>
/etc/login.defs</userinput>: /var/spool/mail is the old location of the
user mailboxes. The location that is used nowadays is /var/mail.</para>
-<para><userinput>ln -sf vipw vigr</userinput> and
-<userinput>ln -sf vipw.8 vigr.8</userinput>: According to the manpage of
+<para><userinput>ln -sf vipw vigr</userinput>: According to the manpage of
vipw, vigr should be a symlink to it. Because the shadow installation
procedure doesn't create these symlinks, we create them manually.</para>
diff --git a/chapter06/shadowpwd-inst.xml b/chapter06/shadowpwd-inst.xml
index 7af472138..7873f6974 100644
--- a/chapter06/shadowpwd-inst.xml
+++ b/chapter06/shadowpwd-inst.xml
@@ -9,14 +9,20 @@ passwords and how to get the most out of this Shadow package.</para>
<para>Install the Shadow Password Suite by running the
following commands:</para>
-<para><screen><userinput>./configure --prefix=/usr &amp;&amp;
+<para><screen><userinput>./configure --prefix=/usr --enable-shared &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
cd etc &amp;&amp;
cp limits login.access /etc &amp;&amp;
sed 's%/var/spool/mail%/var/mail%' login.defs.linux &gt; /etc/login.defs &amp;&amp;
cd /usr/sbin &amp;&amp;
-ln -sf vipw vigr</userinput></screen></para>
+ln -sf vipw vigr &amp;&amp;
+rm /bin/vipw &amp;&amp;
+mv /bin/sg /usr/bin &amp;&amp;
+cd /lib &amp;&amp;
+mv libshadow.*a /usr/lib &amp;&amp;
+cd /usr/lib &amp;&amp;
+ln -s ../../lib/libshadow.so</userinput></screen></para>
</sect2>