aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/shadowpwd.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/shadowpwd.xml')
-rw-r--r--chapter06/shadowpwd.xml33
1 files changed, 11 insertions, 22 deletions
diff --git a/chapter06/shadowpwd.xml b/chapter06/shadowpwd.xml
index 89cfd5d39..a89df4002 100644
--- a/chapter06/shadowpwd.xml
+++ b/chapter06/shadowpwd.xml
@@ -27,15 +27,14 @@ the package incorrectly assumes it is going to be located at
<screen><userinput>touch /usr/bin/passwd</userinput></screen>
-<para>The current Shadow suite has a problem that causes the
-<userinput>newgrp</userinput> command to fail. The following patch (also
-appearing in Shadow's CVS code) fixes this problem:</para>
+<para>Now prepare Shadow for compilation:</para>
-<screen><userinput>patch -Np1 -i ../&shadow-patch;</userinput></screen>
+<screen><userinput>./configure --libdir=/usr/lib --enable-shared</userinput></screen>
-<para>Now prepare Shadow for compilation:</para>
+<para>Work around a problem that prevents Shadow's internationalization from
+working:</para>
-<screen><userinput>./configure --prefix=/usr --libdir=/usr/lib --enable-shared</userinput></screen>
+<screen><userinput>echo '#define HAVE_SETLOCALE 1' >> config.h</userinput></screen>
<para>Compile the package:</para>
@@ -65,20 +64,10 @@ relevant configuration file while copying it to its destination:</para>
<note><para>Be extra careful when typing all of the above. It is probably safer
to cut-and-paste it rather than try and type it all in.</para></note>
-<para>According to the man page of <userinput>vipw</userinput>, a
-<userinput>vigr</userinput> program should exist too. Since the installation
-procedure doesn't create this program, create a symlink manually:</para>
-
-<screen><userinput>ln -s vipw /usr/sbin/vigr</userinput></screen>
-
-<para>As the <filename>/bin/vipw</filename> symlink is redundant (and even
-pointing to a non-existent file), remove it:</para>
-
-<screen><userinput>rm /bin/vipw</userinput></screen>
-
-<para>Now move the <userinput>sg</userinput> program to its proper place:</para>
+<para>Move some misplaced symlinks to their proper locations:</para>
-<screen><userinput>mv /bin/sg /usr/bin</userinput></screen>
+<screen><userinput>mv /bin/sg /usr/bin
+mv /bin/vigr /usr/sbin</userinput></screen>
<para>And move Shadow's dynamic libraries to a more appropriate location:</para>
@@ -95,9 +84,9 @@ directory for it to work properly:</para>
<screen><userinput>mkdir /etc/default</userinput></screen>
-<para>Coreutils has already installed a <userinput>groups</userinput> program
-in <filename>/usr/bin</filename>. If you wish, you can remove the one
-installed by Shadow:</para>
+<para>Coreutils has already installed a better <userinput>groups</userinput>
+program in <filename>/usr/bin</filename>. Remove the one installed by
+Shadow:</para>
<screen><userinput>rm /bin/groups</userinput></screen>