acl.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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-fin-sbu;</seg>
  28. <seg>&acl-fin-du;</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Acl</title>
  34. <para>Prepare Acl for compilation:</para>
  35. <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
  36. --bindir=/bin \
  37. --disable-static \
  38. --libexecdir=/usr/lib \
  39. --docdir=/usr/share/doc/acl-&acl-version;</userinput></screen>
  40. <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
  41. --disable-static \
  42. --libexecdir=/usr/lib \
  43. --docdir=/usr/share/doc/acl-&acl-version;</userinput></screen>
  44. <para>Compile the package:</para>
  45. <screen><userinput remap="make">make</userinput></screen>
  46. <para>The Acl tests need to be run on a filesystem that supports access
  47. controls after <application>Coreutils</application> has been built with the
  48. Acl libraries. If desired, return to this package and run <command>make
  49. check</command> after <application>Coreutils</application> has been built
  50. later in this chapter.</para>
  51. <para>Install the package:</para>
  52. <screen><userinput remap="install">make install</userinput></screen>
  53. <para>The shared library needs to be moved to
  54. <filename class="directory">/lib</filename>, and as a result the
  55. <filename class="extension">.so</filename> file in
  56. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  57. <screen><userinput remap="install">mv -v /usr/lib/libacl.so.* /lib
  58. ln -sfv ../../lib/$(readlink /usr/lib/libacl.so) /usr/lib/libacl.so</userinput></screen>
  59. </sect2>
  60. <!-- - - - - - - - - - -->
  61. <!-- Multilib - 32bit -->
  62. <!-- - - - - - - - - - -->
  63. <sect2 arch="ml_32,ml_all" role="installation">
  64. <title>Installation of Acl - 32bit</title>
  65. <para>Clean previous build:</para>
  66. <screen><userinput remap="pre">make distclean</userinput></screen>
  67. <para>Prepare Xz for compilation:</para>
  68. <screen><userinput remap="configure">CC="gcc -m32" ./configure \
  69. --prefix=/usr \
  70. --disable-static \
  71. --libdir=&usr-lib-m32; \
  72. --libexecdir=&usr-lib-m32; \
  73. --host=i686-pc-linux-gnu</userinput></screen>
  74. <para>Compile the package:</para>
  75. <screen><userinput remap="make">make</userinput></screen>
  76. <para>Install the package:</para>
  77. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  78. cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32;
  79. rm -rf DESTDIR</userinput></screen>
  80. </sect2><!-- m32 -->
  81. <!-- - - - - - - - - - -->
  82. <!-- Multilib - x32bit -->
  83. <!-- - - - - - - - - - -->
  84. <sect2 arch="ml_x32,ml_all" role="installation">
  85. <title>Installation of Acl - x32bit</title>
  86. <para>Clean previous build:</para>
  87. <screen><userinput remap="pre">make distclean</userinput></screen>
  88. <para>Prepare Xz for compilation:</para>
  89. <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
  90. --prefix=/usr \
  91. --disable-static \
  92. --libdir=&usr-lib-mx32; \
  93. --libexecdir=&usr-lib-mx32; \
  94. --host=x86_64-pc-linux-gnux32</userinput></screen>
  95. <para>Compile the package:</para>
  96. <screen><userinput remap="make">make</userinput></screen>
  97. <para>Install the package:</para>
  98. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  99. cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32;
  100. rm -rf DESTDIR</userinput></screen>
  101. </sect2><!-- mx32 -->
  102. <sect2 id="contents-acl" role="content">
  103. <title>Contents of Acl</title>
  104. <segmentedlist>
  105. <segtitle>Installed programs</segtitle>
  106. <segtitle>Installed library</segtitle>
  107. <segtitle>Installed directories</segtitle>
  108. <seglistitem>
  109. <seg>chacl, getfacl, and setfacl</seg>
  110. <seg>libacl.so</seg>
  111. <seg>/usr/include/acl and /usr/share/doc/acl-&acl-version;</seg>
  112. </seglistitem>
  113. </segmentedlist>
  114. <variablelist>
  115. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  116. <?dbfo list-presentation="list"?>
  117. <?dbhtml list-presentation="table"?>
  118. <varlistentry id="chacl">
  119. <term><command>chacl</command></term>
  120. <listitem>
  121. <para>Changes the access control list of a file
  122. or directory</para>
  123. <indexterm zone="ch-system-acl chacl">
  124. <primary sortas="b-chacl">chacl</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="getfacl">
  129. <term><command>getfacl</command></term>
  130. <listitem>
  131. <para>Gets file access control lists</para>
  132. <indexterm zone="ch-system-acl getfacl">
  133. <primary sortas="b-getfacl">getfacl</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="setfacl">
  138. <term><command>setfacl</command></term>
  139. <listitem>
  140. <para>Sets file access control lists</para>
  141. <indexterm zone="ch-system-acl setfacl">
  142. <primary sortas="b-setfacl">setfacl</primary>
  143. </indexterm>
  144. </listitem>
  145. </varlistentry>
  146. <varlistentry id="libacl">
  147. <term><filename class="libraryfile">libacl</filename></term>
  148. <listitem>
  149. <para>Contains the library functions for manipulating Access Control Lists</para>
  150. <indexterm zone="ch-system-acl libacl">
  151. <primary sortas="c-libacl">libacl</primary>
  152. </indexterm>
  153. </listitem>
  154. </varlistentry>
  155. </variablelist>
  156. </sect2>
  157. </sect1>