shadow.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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>Remove the installation of the groups program, and it's man page:</para>
  22. <screen><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
  23. sed -i '/groups/d' man/Makefile</userinput></screen>
  24. <para>Compile the package:</para>
  25. <screen><userinput>make</userinput></screen>
  26. <para>Then install it:</para>
  27. <screen><userinput>make install</userinput></screen>
  28. <para>Install two config files:</para>
  29. <screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen>
  30. <para>Change a configuration file while copying it:</para>
  31. <screen><userinput>sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
  32. -e 's@/var/spool/mail@/var/mail@' \
  33. etc/login.defs.linux &gt; /etc/login.defs</userinput></screen>
  34. <para>Move a program:</para>
  35. <screen><userinput>mv /usr/bin/passwd /bin</userinput></screen>
  36. <para>Move the library:</para>
  37. <screen><userinput>mv /lib/libshadow.*a /usr/lib
  38. rm /lib/libshadow.so
  39. ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen>
  40. <para>Create a dir:</para>
  41. <screen><userinput>mkdir /etc/default</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>