shadow.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-shadow" xreflabel="Shadow" role="wrap">
  7. <title>Shadow-&shadow-version;</title>
  8. <?dbhtml filename="shadow.html"?>
  9. <indexterm zone="ch-system-shadow"><primary sortas="a-Shadow">Shadow</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <segmentedlist>
  12. <segtitle>&buildtime;</segtitle>
  13. <segtitle>&diskspace;</segtitle>
  14. <seglistitem><seg>0.4 SBU</seg><seg>11 MB</seg></seglistitem>
  15. </segmentedlist>
  16. </sect2>
  17. <sect2 role="installation">
  18. <title>Installation of Shadow</title>
  19. <para>Prepare Shadow for compilation:</para>
  20. <screen><userinput>./configure --libdir=/lib --enable-shared</userinput></screen>
  21. <para>Compile the package:</para>
  22. <screen><userinput>make</userinput></screen>
  23. <para>Then install it:</para>
  24. <screen><userinput>make install</userinput></screen>
  25. <para>Install two config files:</para>
  26. <screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen>
  27. <para>Change a configuration file while copying it:</para>
  28. <screen><userinput>sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
  29. -e 's@/var/spool/mail@/var/mail@' \
  30. &lt; etc/login.defs.linux &gt; /etc/login.defs</userinput></screen>
  31. <para>Move a program:</para>
  32. <screen><userinput>mv /usr/bin/passwd /bin</userinput></screen>
  33. <para>Move a library:</para>
  34. <screen><userinput>mv /lib/libshadow.*a /usr/lib</userinput></screen>
  35. <para>Create the following symlinks:</para>
  36. <screen><userinput>rm /lib/libshadow.so
  37. ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen>
  38. <para>Create a dir:</para>
  39. <screen><userinput>mkdir /etc/default</userinput></screen>
  40. <para>Remove a program:</para>
  41. <screen><userinput>rm /bin/groups</userinput></screen>
  42. </sect2>
  43. <sect2 id="conf-shadow" role="configuration"><title>Configuring Shadow</title>
  44. <para>To enable shadowed passwords:</para>
  45. <screen><userinput>pwconv</userinput></screen>
  46. <para>To enable shadowed group passwords, run:</para>
  47. <screen><userinput>grpconv</userinput></screen>
  48. </sect2>
  49. <sect2 role="configuration">
  50. <title>Setting the root password</title>
  51. <para>Choose a password for user root and set it via:</para>
  52. <screen><userinput>passwd root</userinput></screen>
  53. </sect2>
  54. <sect2 id="contents-shadow" role="content"><title>Contents of Shadow</title>
  55. <para>See testing</para>
  56. </sect2>
  57. </sect1>