acl.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>Acl 软件包包含管理访问控制列表的工具,
  21. 访问控制列表能够更细致地自由定义文件和目录的访问权限。</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&acl-ch6-sbu;</seg>
  27. <seg>&acl-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>安装 Acl</title>
  33. <para>准备安装 Acl:</para>
  34. <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
  35. --bindir=/bin \
  36. --disable-static \
  37. --libexecdir=/usr/lib \
  38. --docdir=/usr/share/doc/acl-&acl-version;</userinput></screen>
  39. <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
  40. --disable-static \
  41. --libexecdir=/usr/lib \
  42. --docdir=/usr/share/doc/acl-&acl-version;</userinput></screen>
  43. <para>编译该软件包:</para>
  44. <screen><userinput remap="make">make</userinput></screen>
  45. <para>Acl 的测试套件必须在构建了链接到 Acl 库的
  46. <application>Coreutils</application>
  47. 后才能在支持访问控制的文件系统上运行。
  48. 如果想运行它们,在构建好 <application>Coreutils</application>
  49. 后再返回这里,并执行 <command>make check</command>。</para>
  50. <para>安装该软件包:</para>
  51. <screen><userinput remap="install">make install</userinput></screen>
  52. <para>共享库需要被移动到
  53. <filename class="directory">/lib</filename> 目录,因此
  54. <filename class="directory">/usr/lib</filename> 中的
  55. <filename class="extension">.so</filename> 符号链接需要重新建立:
  56. </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. <sect2 id="contents-acl" role="content">
  61. <title>Acl 的内容</title>
  62. <segmentedlist>
  63. <segtitle>安装的程序</segtitle>
  64. <segtitle>安装的库</segtitle>
  65. <segtitle>安装的目录</segtitle>
  66. <seglistitem>
  67. <seg>chacl, getfacl, 以及 setfacl</seg>
  68. <seg>libacl.so</seg>
  69. <seg>/usr/include/acl 和 /usr/share/doc/acl-&acl-version;</seg>
  70. </seglistitem>
  71. </segmentedlist>
  72. <variablelist>
  73. <bridgehead renderas="sect3">简要描述</bridgehead>
  74. <?dbfo list-presentation="list"?>
  75. <?dbhtml list-presentation="table"?>
  76. <varlistentry id="chacl">
  77. <term><command>chacl</command></term>
  78. <listitem>
  79. <para>修改文件或目录的访问控制列表</para>
  80. <indexterm zone="ch-system-acl chacl">
  81. <primary sortas="b-chacl">chacl</primary>
  82. </indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="getfacl">
  86. <term><command>getfacl</command></term>
  87. <listitem>
  88. <para>获取文件访问控制列表</para>
  89. <indexterm zone="ch-system-acl getfacl">
  90. <primary sortas="b-getfacl">getfacl</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="setfacl">
  95. <term><command>setfacl</command></term>
  96. <listitem>
  97. <para>设定文件访问控制列表</para>
  98. <indexterm zone="ch-system-acl setfacl">
  99. <primary sortas="b-setfacl">setfacl</primary>
  100. </indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="libacl">
  104. <term><filename class="libraryfile">libacl</filename></term>
  105. <listitem>
  106. <para>包含操作访问控制列表的库函数</para>
  107. <indexterm zone="ch-system-acl libacl">
  108. <primary sortas="c-libacl">libacl</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. </variablelist>
  113. </sect2>
  114. </sect1>