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