acl.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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>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. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
  61. <sect2 arch="ml_32,ml_all" role="installation">
  62. <title>Installation of Acl - 32-bit</title>
  63. <para>Clean previous build:</para>
  64. <screen><userinput remap="pre">make distclean</userinput></screen>
  65. <para>Prepare Acl for compilation:</para>
  66. <screen><userinput remap="configure">CC="gcc -m32" ./configure \
  67. --prefix=/usr --libdir=/usr/lib32 \
  68. --disable-static --libexecdir=/usr/lib32 \
  69. --host=i686-pc-linux-gnu</userinput></screen>
  70. <para>Compile the package:</para>
  71. <screen><userinput remap="make">make</userinput></screen>
  72. <para>Install the package:</para>
  73. <screen><userinput remap="install">make DESTDIR=$(pwd)/DESTDIR install
  74. cp -Rv DESTDIR/usr/lib32/* /usr/lib32
  75. rm -rf DESTDIR</userinput></screen>
  76. </sect2>
  77. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
  78. <sect2 arch="ml_x32,ml_all" role="installation">
  79. <title>Installation of Acl - x32-bit</title>
  80. <para>Clean previous build:</para>
  81. <screen><userinput remap="pre">make distclean</userinput></screen>
  82. <para>Prepare Acl for compilation:</para>
  83. <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
  84. --prefix=/usr --libdir=/usr/libx32 \
  85. --disable-static --libexecdir=/usr/libx32 \
  86. --host=x86_64-pc-linux-gnux32</userinput></screen>
  87. <para>Compile the package:</para>
  88. <screen><userinput remap="make">make</userinput></screen>
  89. <para>Install the package:</para>
  90. <screen><userinput remap="install">make DESTDIR=$(pwd)/DESTDIR install
  91. cp -Rv DESTDIR/usr/libx32/* /usr/libx32
  92. rm -rf DESTDIR</userinput></screen>
  93. </sect2>
  94. <sect2 id="contents-acl" role="content">
  95. <title>Contents of Acl</title>
  96. <segmentedlist>
  97. <segtitle>Installed programs</segtitle>
  98. <segtitle>Installed library</segtitle>
  99. <segtitle>Installed directories</segtitle>
  100. <seglistitem>
  101. <seg>chacl, getfacl, and setfacl</seg>
  102. <seg>libacl.so</seg>
  103. <seg>/usr/include/acl and /usr/share/doc/acl-&acl-version;</seg>
  104. </seglistitem>
  105. </segmentedlist>
  106. <variablelist>
  107. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  108. <?dbfo list-presentation="list"?>
  109. <?dbhtml list-presentation="table"?>
  110. <varlistentry id="chacl">
  111. <term><command>chacl</command></term>
  112. <listitem>
  113. <para>Changes the access control list of a file
  114. or directory</para>
  115. <indexterm zone="ch-system-acl chacl">
  116. <primary sortas="b-chacl">chacl</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="getfacl">
  121. <term><command>getfacl</command></term>
  122. <listitem>
  123. <para>Gets file access control lists</para>
  124. <indexterm zone="ch-system-acl getfacl">
  125. <primary sortas="b-getfacl">getfacl</primary>
  126. </indexterm>
  127. </listitem>
  128. </varlistentry>
  129. <varlistentry id="setfacl">
  130. <term><command>setfacl</command></term>
  131. <listitem>
  132. <para>Sets file access control lists</para>
  133. <indexterm zone="ch-system-acl setfacl">
  134. <primary sortas="b-setfacl">setfacl</primary>
  135. </indexterm>
  136. </listitem>
  137. </varlistentry>
  138. <varlistentry id="libacl">
  139. <term><filename class="libraryfile">libacl</filename></term>
  140. <listitem>
  141. <para>Contains the library functions for manipulating Access Control Lists</para>
  142. <indexterm zone="ch-system-acl libacl">
  143. <primary sortas="c-libacl">libacl</primary>
  144. </indexterm>
  145. </listitem>
  146. </varlistentry>
  147. </variablelist>
  148. </sect2>
  149. </sect1>