shadowpwd-inst.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Shadow Password Suite</title>
  4. <para>Before you install this package, you may want to have a look at
  5. the Shadow hint. It discusses how you can make your system more secure
  6. regarding passwords, such as how to enable the more secure MD5 passwords
  7. and how to get the most out of this Shadow package. The Shadow hint can
  8. be found at <ulink url="&hints-root;shadowpasswd_plus.txt"/>.</para>
  9. <para>Prepare Shadow to be compiled:</para>
  10. <para><screen><userinput>./configure --prefix=/usr --libdir=/usr/lib \
  11. &nbsp;&nbsp;&nbsp;&nbsp;--enable-shared</userinput></screen></para>
  12. <para>Continue with compiling the package:</para>
  13. <para><screen><userinput>make</userinput></screen></para>
  14. <para>Install the package:</para>
  15. <para><screen><userinput>make install</userinput></screen></para>
  16. <para>Shadow uses two files to configure authentication settings for
  17. the system. Install those config files:</para>
  18. <para><screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen></para>
  19. <para><filename class="directory">/var/spool/mail</filename> is the
  20. old location of the user mailboxes. The location that is used nowadays
  21. is /var/mail. Issue the following command to modify the mailbox
  22. location:</para>
  23. <para><screen><userinput>sed 's%/var/spool/mail%/var/mail%' \
  24. &nbsp;&nbsp;&nbsp;&nbsp;etc/login.defs.linux &gt; /etc/login.defs</userinput></screen></para>
  25. <para>According to the manpage of <userinput>vipw</userinput>,
  26. a <userinput>vigr</userinput> symlink should exist. Because the
  27. shadow installation procedure doesn't create this symlink, it
  28. must be created manually:</para>
  29. <para><screen><userinput>ln -s vipw /usr/sbin/vigr</userinput></screen></para>
  30. <para>The <filename>vipw</filename> link is currently pointing
  31. to a non-existing file. Since this file isn't needed here, remove
  32. it:</para>
  33. <para><screen><userinput>rm /bin/vipw</userinput></screen></para>
  34. <para>Move the <userinput>sg</userinput> program to the
  35. <filename class="directory">/usr/bin</filename> directory:</para>
  36. <para><screen><userinput>mv /bin/sg /usr/bin</userinput></screen></para>
  37. <para>Move Shadow's dynamic libraries to a more appropriate location:</para>
  38. <para><screen><userinput>mv /usr/lib/lib{shadow,misc}.so.0* /lib</userinput></screen></para>
  39. <para>The libraries have been moved, but some packages expect to
  40. find them in them in the
  41. <filename class="directory">/usr/lib</filename> directory. To account
  42. for this, create the following symlinks:</para>
  43. <para><screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so &amp;&amp;
  44. ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</userinput></screen></para>
  45. <para>Sh-utils and Shadow Password Suite each install a unique
  46. <filename>groups</filename> program. If you wish, you may remove the
  47. <filename>groups</filename> program installed by the Shadow Password
  48. Suite:</para>
  49. <para><screen><userinput>rm /bin/groups</userinput></screen></para>
  50. </sect2>