acl.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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>Fix some broken tests:</para>
  38. <screen><userinput remap="pre">sed -i "s:| sed.*::g" test/{sbits-restore,cp,misc}.test</userinput></screen>
  39. <para>Additionally, fix a bug that causes <command>getfacl -e</command>
  40. to segfault on overly long group name:</para>
  41. <screen><userinput remap="pre">sed -i -e "/TABS-1;/a if (x > (TABS-1)) x = (TABS-1);" \
  42. libacl/__acl_to_any_text.c</userinput></screen>
  43. <para>Prepare Acl for compilation:</para>
  44. <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
  45. --bindir=/bin \
  46. --disable-static \
  47. --libexecdir=/usr/lib</userinput></screen>
  48. <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
  49. --disable-static \
  50. --libexecdir=/usr/lib</userinput></screen>
  51. <para>Compile the package:</para>
  52. <screen><userinput remap="make">make</userinput></screen>
  53. <para>The Acl tests need to be run on a filesystem that supports access
  54. controls after <application>Coreutils</application> has been built with the
  55. Acl libraries. If desired, return to this package and run <command>make -j1
  56. tests</command> after <application>Coreutils</application> has been built
  57. later in this chapter.</para>
  58. <para>Install the package:</para>
  59. <screen><userinput remap="install">make install install-dev install-lib
  60. chmod -v 755 /usr/lib/libacl.so</userinput></screen>
  61. <para>The shared library needs to be moved to
  62. <filename class="directory">/lib</filename>, and as a result the
  63. <filename class="extension">.so</filename> file in
  64. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  65. <screen><userinput remap="install">mv -v /usr/lib/libacl.so.* /lib
  66. ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput></screen>
  67. </sect2>
  68. <sect2 id="contents-acl" role="content">
  69. <title>Contents of Acl</title>
  70. <segmentedlist>
  71. <segtitle>Installed programs</segtitle>
  72. <segtitle>Installed library</segtitle>
  73. <segtitle>Installed directories</segtitle>
  74. <seglistitem>
  75. <seg>chacl, getfacl, and setfacl</seg>
  76. <seg>libacl.so</seg>
  77. <seg>/usr/include/acl and /usr/share/doc/acl-&acl-version;</seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  82. <?dbfo list-presentation="list"?>
  83. <?dbhtml list-presentation="table"?>
  84. <varlistentry id="chacl">
  85. <term><command>chacl</command></term>
  86. <listitem>
  87. <para>Changes the access control list of a file
  88. or directory</para>
  89. <indexterm zone="ch-system-acl chacl">
  90. <primary sortas="b-chacl">chacl</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="getfacl">
  95. <term><command>getfacl</command></term>
  96. <listitem>
  97. <para>Gets file access control lists</para>
  98. <indexterm zone="ch-system-acl getfacl">
  99. <primary sortas="b-getfacl">getfacl</primary>
  100. </indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="setfacl">
  104. <term><command>setfacl</command></term>
  105. <listitem>
  106. <para>Sets file access control lists</para>
  107. <indexterm zone="ch-system-acl setfacl">
  108. <primary sortas="b-setfacl">setfacl</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="libacl">
  113. <term><filename class="libraryfile">libacl</filename></term>
  114. <listitem>
  115. <para>Contains the library functions for manipulating Access Control Lists</para>
  116. <indexterm zone="ch-system-acl libacl">
  117. <primary sortas="c-libacl">libacl</primary>
  118. </indexterm>
  119. </listitem>
  120. </varlistentry>
  121. </variablelist>
  122. </sect2>
  123. </sect1>