diff options
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/grep-inst.xml | 1 | ||||
-rw-r--r-- | chapter06/shadowpwd-exp.xml | 8 | ||||
-rw-r--r-- | chapter06/shadowpwd-inst.xml | 10 |
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 && make && +rm /bin/egrep /bin/fgrep && 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 > src/useradd.c &&</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 && +<para><screen><userinput>./configure --prefix=/usr --enable-shared && make && make install && cd etc && cp limits login.access /etc && sed 's%/var/spool/mail%/var/mail%' login.defs.linux > /etc/login.defs && cd /usr/sbin && -ln -sf vipw vigr</userinput></screen></para> +ln -sf vipw vigr && +rm /bin/vipw && +mv /bin/sg /usr/bin && +cd /lib && +mv libshadow.*a /usr/lib && +cd /usr/lib && +ln -s ../../lib/libshadow.so</userinput></screen></para> </sect2> |