2009-11-08 16:45:22 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2010-03-08 02:19:54 +08:00
|
|
|
<!ENTITY acl-download-http "http://mirrors.zerg.biz/nongnu/acl/acl-&acl-version;.src.tar.gz">
|
2011-10-25 04:28:43 +08:00
|
|
|
<!-- <!ENTITY acl-download-ftp " "> -->
|
2010-11-05 23:56:42 +08:00
|
|
|
<!ENTITY acl-download-ftp " ">
|
2011-10-25 07:21:46 +08:00
|
|
|
<!ENTITY acl-md5sum "3fc0ce99dc5253bdcce4c9cd437bc267">
|
|
|
|
<!ENTITY acl-size "384 KB">
|
2009-11-08 16:45:22 +08:00
|
|
|
<!ENTITY acl-buildsize "5 MB">
|
|
|
|
<!ENTITY acl-time "0.1 SBU">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="acl" xreflabel="acl-&acl-version;">
|
|
|
|
<?dbhtml filename="acl.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>acl-&acl-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="acl">
|
|
|
|
<primary sortas="a-acl">acl</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to acl</title>
|
|
|
|
|
|
|
|
<para>The <application>acl</application> package contains utilities to
|
|
|
|
administer Access Control Lists, which are used to define more fine-grained
|
|
|
|
discretionary access rights for files and directories.</para>
|
|
|
|
|
2011-10-25 04:28:43 +08:00
|
|
|
&lfs70_checked;
|
2010-11-06 07:03:49 +08:00
|
|
|
|
2009-11-08 16:45:22 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&acl-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&acl-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &acl-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &acl-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &acl-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &acl-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">acl Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required"><xref linkend="attr"/></para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/acl"/></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of acl</title>
|
|
|
|
|
|
|
|
<para>Install <application>acl</application> by running the following
|
|
|
|
commands:</para>
|
|
|
|
|
2011-10-25 04:28:43 +08:00
|
|
|
<screen><userinput>sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \
|
2010-11-05 23:56:42 +08:00
|
|
|
-e 's|@prefix|$(DESTDIR)&|' \
|
|
|
|
-e 's|@libexec|$(DESTDIR)&|' \
|
|
|
|
include/builddefs.in &&
|
|
|
|
|
2010-03-08 04:10:17 +08:00
|
|
|
./configure --prefix=/usr --libexecdir=/usr/lib &&
|
2009-11-08 16:45:22 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>For meaningful results, the tests need to be carried out on a file
|
|
|
|
system that supports extended attributes. It is also required that
|
|
|
|
<application>Coreutils</application> is re-installed after
|
|
|
|
<application>acl</application> is installed so that the extra acl bit
|
2011-06-09 20:47:22 +08:00
|
|
|
displays correctly on a <command>ls</command> command.</para>
|
2009-11-08 16:45:22 +08:00
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2011-10-25 11:31:31 +08:00
|
|
|
<screen role="root"><userinput>make install install-dev install-lib &&
|
|
|
|
install -dv -m755 /usr/share/doc/acl-&acl-version; &&
|
|
|
|
install -v -m644 doc/*.txt /usr/share/doc/acl-&acl-version; &&
|
|
|
|
chmod -v 755 /usr/lib/libacl.{so.1.1.0,la} &&
|
|
|
|
chown -v root.root /usr/lib/libacl.{so.1.1.0,la,a} &&
|
|
|
|
chown -v root.root /usr/share/man/man*/*acl*</userinput></screen>
|
2009-11-08 16:45:22 +08:00
|
|
|
|
2009-11-10 17:01:13 +08:00
|
|
|
<para>You should now re-install <application><ulink
|
2009-11-14 11:28:12 +08:00
|
|
|
url="&lfs-root;/chapter06/coreutils.html">Coreutils</ulink>
|
2009-11-10 17:01:13 +08:00
|
|
|
</application> and proceed to run the test suite.</para>
|
2009-11-08 16:45:22 +08:00
|
|
|
|
|
|
|
<para>There are three sets of tests that come with this package. Issue the
|
|
|
|
following to execute all three:
|
|
|
|
<command>make tests root-tests ext-tests</command>.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2010-03-08 04:10:17 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para><command>sed -i ... include/builddefs.in</command>: This command
|
2010-11-05 23:56:42 +08:00
|
|
|
changes the documentation directory to a versioned directory and provides
|
|
|
|
for a DESTDIR installation.</para>
|
|
|
|
|
|
|
|
<para><command>chmod ...</command>: This command modifies the permissions
|
|
|
|
of installed library files to standards.</para>
|
2010-03-08 04:10:17 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2009-11-08 16:45:22 +08:00
|
|
|
<sect2 role="configuration">
|
2010-11-05 23:56:42 +08:00
|
|
|
<title>Configuring acl</title>
|
2009-11-08 16:45:22 +08:00
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>There is no configuration to <application>acl</application> itself,
|
|
|
|
but to get any use out of <application>acl</application>, a filesystem
|
|
|
|
needs to support access control lists.</para>
|
|
|
|
|
|
|
|
<para>One way to achieve this is to add the acl option to an ext3
|
2010-11-05 23:56:42 +08:00
|
|
|
filesystem in the <filename>/etc/fstab</filename> file as shown
|
|
|
|
below:</para>
|
2009-11-08 16:45:22 +08:00
|
|
|
|
|
|
|
<screen># file system mount-point type options dump fsck
|
|
|
|
# order
|
|
|
|
|
|
|
|
/dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
2010-03-08 04:28:45 +08:00
|
|
|
<segtitle>Installed Directories</segtitle>
|
2009-11-08 16:45:22 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>chacl, getfacl, and setfacl</seg>
|
|
|
|
<seg>libacl.{so,a}</seg>
|
|
|
|
<seg>/usr/{include/acl,share/doc/acl-&acl-version;}</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="chacl">
|
|
|
|
<term><command>chacl</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>changes the access control list of a file or directory.</para>
|
|
|
|
<indexterm zone="acl chacl">
|
|
|
|
<primary sortas="b-chacl">chacl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="getfacl">
|
|
|
|
<term><command>getfacl</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>gets file access control lists.</para>
|
|
|
|
<indexterm zone="acl getfacl">
|
|
|
|
<primary sortas="b-getfacl">getfacl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="setfacl">
|
|
|
|
<term><command>setfacl</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>sets file access control lists.</para>
|
|
|
|
<indexterm zone="acl setfacl">
|
|
|
|
<primary sortas="b-setfacl">setfacl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libacl">
|
|
|
|
<term><filename class='libraryfile'>libacl.{so,a}</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>contains the <application>acl</application> API functions.</para>
|
|
|
|
<indexterm zone="acl libacl">
|
|
|
|
<primary sortas="c-libacl">libacl.{so,a}</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|