acl.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-acl" role="wrap">
  8. <?dbhtml filename="acl.html"?>
  9. <sect1info condition="script">
  10. <productname>acl</productname>
  11. <productnumber>&acl-version;</productnumber>
  12. <address>&acl-url;</address>
  13. </sect1info>
  14. <title>Acl-&acl-version;</title>
  15. <indexterm zone="ch-system-acl">
  16. <primary sortas="a-Acl">Acl</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Acl package contains utilities to administer Access Control Lists,
  21. which are used to define more fine-grained discretionary access rights for
  22. files and directories.</para>
  23. <segmentedlist>
  24. <segtitle>&buildtime;</segtitle>
  25. <segtitle>&diskspace;</segtitle>
  26. <seglistitem>
  27. <seg>&acl-ch6-sbu;</seg>
  28. <seg>&acl-ch6-du;</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Acl</title>
  34. <para>Modify the documentation directory so that it is a versioned
  35. directory:</para>
  36. <screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
  37. <para>Prepare Acl for compilation:</para>
  38. <screen><userinput remap="configure">./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen>
  39. <para>Compile the package:</para>
  40. <screen><userinput remap="make">make</userinput></screen>
  41. <para>The Acl tests need to be run on a filesystem that supports access
  42. controls. You will see lot of failures because Coreutils wasn't compiled
  43. with ACL support. To anyways test the results, issue:</para>
  44. <screen><userinput remap="test">make -k tests root-tests</userinput></screen>
  45. <note><para>Even if you run Acl tests after Coreutils has been built with
  46. Acl support, at least 11 tests will still fail for unknown reasons.</para>
  47. </note>
  48. <para>Install the package:</para>
  49. <screen><userinput remap="install">make install install-dev install-lib
  50. chmod -v 755 /usr/lib/libacl.so</userinput></screen>
  51. <para>The shared library needs to be moved to
  52. <filename class="directory">/lib</filename>, and as a result the
  53. <filename class="extension">.so</filename> file in
  54. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  55. <screen><userinput remap="install">mv -v /usr/lib/libacl.so.* /lib
  56. ln -sfv ../../lib/libacl.so.1 /usr/lib/libacl.so</userinput></screen>
  57. </sect2>
  58. <sect2 id="contents-acl" role="content">
  59. <title>Contents of Acl</title>
  60. <segmentedlist>
  61. <segtitle>Installed programs</segtitle>
  62. <segtitle>Installed library</segtitle>
  63. <segtitle>Installed directories</segtitle>
  64. <seglistitem>
  65. <seg>chacl, getfacl, and setacl</seg>
  66. <seg>libacl.{so,a}</seg>
  67. <seg>/usr/include/acl, /usr/share/doc/acl-&acl-version;</seg>
  68. </seglistitem>
  69. </segmentedlist>
  70. <variablelist>
  71. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  72. <?dbfo list-presentation="list"?>
  73. <?dbhtml list-presentation="table"?>
  74. <varlistentry id="chacl">
  75. <term><command>chacl</command></term>
  76. <listitem>
  77. <para>Changes the access control list of a file
  78. or directory.</para>
  79. <indexterm zone="ch-system-acl chacl">
  80. <primary sortas="b-chacl">chacl</primary>
  81. </indexterm>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="getfacl">
  85. <term><command>getfacl</command></term>
  86. <listitem>
  87. <para>Gets file access control lists.</para>
  88. <indexterm zone="ch-system-acl getfacl">
  89. <primary sortas="b-getfacl">getfacl</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="setacl">
  94. <term><command>setacl</command></term>
  95. <listitem>
  96. <para>Sets file access control lists.</para>
  97. <indexterm zone="ch-system-acl setacl">
  98. <primary sortas="b-setacl">setacl</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="libacl">
  103. <term><filename class="libraryfile">libacl.{so,a}</filename></term>
  104. <listitem>
  105. <para>Contains the <application>Acl</application> API functions.</para>
  106. <indexterm zone="ch-system-acl libacl">
  107. <primary sortas="c-libacl">libacl.{so,a}</primary>
  108. </indexterm>
  109. </listitem>
  110. </varlistentry>
  111. </variablelist>
  112. </sect2>
  113. </sect1>