shadowpwd-inst.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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>Programs like login, shutdown, uptime, and others want to read
  10. from and to the /var/run/utmp, /var/log/btmp and /var/log/wtmp. These
  11. files contain information about who is currently logged in. They also
  12. contain information about when the conmputer was last booted and
  13. shutdown and a record of bas login attempts.</para>
  14. <para>Create these files with their proper permissions by running the
  15. following commands:</para>
  16. <para><screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} &amp;&amp;
  17. chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp)</userinput></screen></para>
  18. <para>Prepare Shadow to be compiled:</para>
  19. <para><screen><userinput>./configure --prefix=/usr --libdir=/usr/lib \
  20. &nbsp;&nbsp;&nbsp;&nbsp;--enable-shared</userinput></screen></para>
  21. <para>Continue with compiling the package:</para>
  22. <para><screen><userinput>make</userinput></screen></para>
  23. <para>Install the package:</para>
  24. <para><screen><userinput>make install</userinput></screen></para>
  25. <para>Shadow uses two files to configure authentication settings for
  26. the system. Install those config files:</para>
  27. <para><screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen></para>
  28. <para><filename class="directory">/var/spool/mail</filename> is the
  29. old location of the user mailboxes. The location that is used nowadays
  30. is /var/mail. Issue the following command to modify the mailbox
  31. location:</para>
  32. <para><screen><userinput>sed 's%/var/spool/mail%/var/mail%' \
  33. &nbsp;&nbsp;&nbsp;&nbsp;etc/login.defs.linux &gt; /etc/login.defs</userinput></screen></para>
  34. <para>According to the manpage of <userinput>vipw</userinput>,
  35. a <userinput>vigr</userinput> symlink should exist. Because the
  36. shadow installation procedure doesn't create this symlink, it
  37. must be created manually:</para>
  38. <para><screen><userinput>ln -s vipw /usr/sbin/vigr</userinput></screen></para>
  39. <para>The <filename>vipw</filename> link is currently pointing
  40. to a non-existing file. Since this file isn't needed here, remove
  41. it:</para>
  42. <para><screen><userinput>rm /bin/vipw</userinput></screen></para>
  43. <para>Move the <userinput>sg</userinput> program to the
  44. <filename class="directory">/usr/bin</filename> directory:</para>
  45. <para><screen><userinput>mv /bin/sg /usr/bin</userinput></screen></para>
  46. <para>Move Shadow's dynamic libraries to a more appropriate location:</para>
  47. <para><screen><userinput>mv /usr/lib/lib{shadow,misc}.so.0* /lib</userinput></screen></para>
  48. <para>The libraries have been moved, but some packages expect to
  49. find them in them in the
  50. <filename class="directory">/usr/lib</filename> directory. To account
  51. for this, create the following symlinks:</para>
  52. <para><screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so &amp;&amp;
  53. ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</userinput></screen></para>
  54. <para>Sh-utils and Shadow Password Suite each install a unique
  55. <filename>groups</filename> program. If you wish, you may remove the
  56. <filename>groups</filename> program installed by the Shadow Password
  57. Suite:</para>
  58. <para><screen><userinput>rm /bin/groups</userinput></screen></para>
  59. </sect2>