[1f25cea9] | 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 |
|
---|
[bad63051] | 7 | <!ENTITY acl-download-http "http://download.savannah.gnu.org/releases/acl/acl-&acl-version;.src.tar.gz">
|
---|
[208950b] | 8 | <!ENTITY acl-download-ftp " ">
|
---|
[686435b] | 9 | <!ENTITY acl-md5sum "3fc0ce99dc5253bdcce4c9cd437bc267">
|
---|
[bad63051] | 10 | <!ENTITY acl-size "380 KB">
|
---|
| 11 | <!ENTITY acl-buildsize "5.5 MB">
|
---|
[1f25cea9] | 12 | <!ENTITY acl-time "0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="acl" xreflabel="acl-&acl-version;">
|
---|
| 16 | <?dbhtml filename="acl.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>acl-&acl-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="acl">
|
---|
| 26 | <primary sortas="a-acl">acl</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to acl</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>acl</application> package contains utilities to
|
---|
| 33 | administer Access Control Lists, which are used to define more fine-grained
|
---|
| 34 | discretionary access rights for files and directories.</para>
|
---|
| 35 |
|
---|
[778be14] | 36 | &lfs70_checked;
|
---|
[09fde38] | 37 |
|
---|
[1f25cea9] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&acl-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
[00b2c1b] | 43 | <listitem>
|
---|
[1f25cea9] | 44 | <para>Download (FTP): <ulink url="&acl-download-ftp;"/></para>
|
---|
[00b2c1b] | 45 | </listitem>
|
---|
[1f25cea9] | 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &acl-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &acl-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &acl-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &acl-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">acl Dependencies</bridgehead>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 63 | <para role="required"><xref linkend="attr"/></para>
|
---|
| 64 |
|
---|
| 65 | <para condition="html" role="usernotes">User Notes:
|
---|
| 66 | <ulink url="&blfs-wiki;/acl"/></para>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 | <sect2 role="installation">
|
---|
| 71 | <title>Installation of acl</title>
|
---|
| 72 |
|
---|
| 73 | <para>Install <application>acl</application> by running the following
|
---|
| 74 | commands:</para>
|
---|
| 75 |
|
---|
[778be14] | 76 | <screen><userinput>sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \
|
---|
[bad63051] | 77 | include/builddefs.in &&
|
---|
[208950b] | 78 |
|
---|
[bad63051] | 79 | INSTALL_USER=root INSTALL_GROUP=root ./configure \
|
---|
| 80 | --prefix=/usr --libdir=/lib \
|
---|
| 81 | --libexecdir=/usr/lib &&
|
---|
[1f25cea9] | 82 | make</userinput></screen>
|
---|
| 83 |
|
---|
| 84 | <para>For meaningful results, the tests need to be carried out on a file
|
---|
| 85 | system that supports extended attributes. It is also required that
|
---|
| 86 | <application>Coreutils</application> is re-installed after
|
---|
| 87 | <application>acl</application> is installed so that the extra acl bit
|
---|
[a52e6d76] | 88 | displays correctly on a <command>ls</command> command.</para>
|
---|
[1f25cea9] | 89 |
|
---|
| 90 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 91 |
|
---|
[bad63051] | 92 | <!-- Package uses DIST_ROOT instead of DESTDIR -->
|
---|
| 93 | <screen role="root"><userinput>make install install-dev install-lib &&
|
---|
| 94 | chmod -v 0755 /lib/libacl.so.1.1.0 &&
|
---|
| 95 | rm -v /lib/libacl.{a,la,so} &&
|
---|
| 96 | ln -sfv ../../lib/libacl.so.1 /usr/lib/libacl.so &&
|
---|
| 97 | install -v -m644 doc/*.txt /usr/share/doc/acl-&acl-version;</userinput></screen>
|
---|
[1f25cea9] | 98 |
|
---|
[c9354ea0] | 99 | <para>You should now re-install <application><ulink
|
---|
[49b9df3c] | 100 | url="&lfs-root;/chapter06/coreutils.html">Coreutils</ulink>
|
---|
[c9354ea0] | 101 | </application> and proceed to run the test suite.</para>
|
---|
[1f25cea9] | 102 |
|
---|
| 103 | <para>There are three sets of tests that come with this package. Issue the
|
---|
| 104 | following to execute all three:
|
---|
| 105 | <command>make tests root-tests ext-tests</command>.</para>
|
---|
| 106 |
|
---|
| 107 | </sect2>
|
---|
| 108 |
|
---|
[10033899] | 109 | <sect2 role="commands">
|
---|
| 110 | <title>Command Explanations</title>
|
---|
| 111 |
|
---|
| 112 | <para><command>sed -i ... include/builddefs.in</command>: This command
|
---|
[bad63051] | 113 | modifies the documentation directory so that it is a versioned
|
---|
| 114 | directory.</para>
|
---|
[10033899] | 115 |
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
[1f25cea9] | 118 | <sect2 role="configuration">
|
---|
[208950b] | 119 | <title>Configuring acl</title>
|
---|
[1f25cea9] | 120 | <sect3><title>Configuration Information</title>
|
---|
| 121 |
|
---|
| 122 | <para>There is no configuration to <application>acl</application> itself,
|
---|
| 123 | but to get any use out of <application>acl</application>, a filesystem
|
---|
| 124 | needs to support access control lists.</para>
|
---|
| 125 |
|
---|
| 126 | <para>One way to achieve this is to add the acl option to an ext3
|
---|
[208950b] | 127 | filesystem in the <filename>/etc/fstab</filename> file as shown
|
---|
| 128 | below:</para>
|
---|
[1f25cea9] | 129 |
|
---|
| 130 | <screen># file system mount-point type options dump fsck
|
---|
| 131 | # order
|
---|
| 132 |
|
---|
| 133 | /dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
|
---|
| 134 |
|
---|
| 135 | </sect3>
|
---|
| 136 |
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="content">
|
---|
| 140 | <title>Contents</title>
|
---|
| 141 |
|
---|
| 142 | <segmentedlist>
|
---|
| 143 | <segtitle>Installed Programs</segtitle>
|
---|
| 144 | <segtitle>Installed Library</segtitle>
|
---|
[2bb9a3a] | 145 | <segtitle>Installed Directories</segtitle>
|
---|
[1f25cea9] | 146 |
|
---|
| 147 | <seglistitem>
|
---|
| 148 | <seg>chacl, getfacl, and setfacl</seg>
|
---|
| 149 | <seg>libacl.{so,a}</seg>
|
---|
| 150 | <seg>/usr/{include/acl,share/doc/acl-&acl-version;}</seg>
|
---|
| 151 | </seglistitem>
|
---|
| 152 | </segmentedlist>
|
---|
| 153 |
|
---|
| 154 | <variablelist>
|
---|
| 155 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 156 | <?dbfo list-presentation="list"?>
|
---|
| 157 | <?dbhtml list-presentation="table"?>
|
---|
| 158 |
|
---|
| 159 | <varlistentry id="chacl">
|
---|
| 160 | <term><command>chacl</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para>changes the access control list of a file or directory.</para>
|
---|
| 163 | <indexterm zone="acl chacl">
|
---|
| 164 | <primary sortas="b-chacl">chacl</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="getfacl">
|
---|
| 170 | <term><command>getfacl</command></term>
|
---|
| 171 | <listitem>
|
---|
| 172 | <para>gets file access control lists.</para>
|
---|
| 173 | <indexterm zone="acl getfacl">
|
---|
| 174 | <primary sortas="b-getfacl">getfacl</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="setfacl">
|
---|
| 180 | <term><command>setfacl</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>sets file access control lists.</para>
|
---|
| 183 | <indexterm zone="acl setfacl">
|
---|
| 184 | <primary sortas="b-setfacl">setfacl</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="libacl">
|
---|
| 190 | <term><filename class='libraryfile'>libacl.{so,a}</filename></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>contains the <application>acl</application> API functions.</para>
|
---|
| 193 | <indexterm zone="acl libacl">
|
---|
| 194 | <primary sortas="c-libacl">libacl.{so,a}</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | </variablelist>
|
---|
| 200 |
|
---|
| 201 | </sect2>
|
---|
| 202 |
|
---|
| 203 | </sect1>
|
---|