[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 |
|
---|
| 7 | <!ENTITY acl-download-http "http://mirror.dknss.com/nongnu/acl/acl-&acl-version;.src.tar.gz">
|
---|
| 8 | <!ENTITY acl-download-ftp " ">
|
---|
| 9 | <!ENTITY acl-md5sum "6ed035f4b7dffc7de5ef871f86a5cab8">
|
---|
| 10 | <!ENTITY acl-size "353 KB">
|
---|
| 11 | <!ENTITY acl-buildsize "5 MB">
|
---|
| 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 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&acl-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&acl-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &acl-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &acl-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &acl-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &acl-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
| 58 | <bridgehead renderas="sect3">acl Dependencies</bridgehead>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 61 | <para role="required"><xref linkend="attr"/></para>
|
---|
| 62 |
|
---|
| 63 | <para condition="html" role="usernotes">User Notes:
|
---|
| 64 | <ulink url="&blfs-wiki;/acl"/></para>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2 role="installation">
|
---|
| 69 | <title>Installation of acl</title>
|
---|
| 70 |
|
---|
| 71 | <para>Install <application>acl</application> by running the following
|
---|
| 72 | commands:</para>
|
---|
| 73 |
|
---|
| 74 | <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib &&
|
---|
| 75 | make</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | <para>For meaningful results, the tests need to be carried out on a file
|
---|
| 78 | system that supports extended attributes. It is also required that
|
---|
| 79 | <application>Coreutils</application> is re-installed after
|
---|
| 80 | <application>acl</application> is installed so that the extra acl bit
|
---|
| 81 | displays correctly on a ls command. Some failures will occur due to a
|
---|
| 82 | missing script called sort-getfattr-output which is not part fo the
|
---|
| 83 | tarball.</para>
|
---|
| 84 |
|
---|
| 85 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 86 |
|
---|
| 87 | <screen role="root"><userinput>make install install-dev install-lib &&
|
---|
| 88 | mv /usr/share/doc/acl /usr/share/doc/acl-&acl-version;</userinput></screen>
|
---|
| 89 |
|
---|
| 90 | <para>You should now re-install <application>Coreutils</application> and proceed to run the test suite.</para>
|
---|
| 91 |
|
---|
| 92 | <para>There are three sets of tests that come with this package. Issue the
|
---|
| 93 | following to execute all three:
|
---|
| 94 | <command>make tests root-tests ext-tests</command>.</para>
|
---|
| 95 |
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="configuration">
|
---|
| 99 | <title>Configuring attr</title>
|
---|
| 100 | <sect3><title>Configuration Information</title>
|
---|
| 101 |
|
---|
| 102 | <para>There is no configuration to <application>acl</application> itself,
|
---|
| 103 | but to get any use out of <application>acl</application>, a filesystem
|
---|
| 104 | needs to support access control lists.</para>
|
---|
| 105 |
|
---|
| 106 | <para>One way to achieve this is to add the acl option to an ext3
|
---|
| 107 | filesystem in the /etc/fstab file as shown below.</para>
|
---|
| 108 |
|
---|
| 109 | <screen># file system mount-point type options dump fsck
|
---|
| 110 | # order
|
---|
| 111 |
|
---|
| 112 | /dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
|
---|
| 113 |
|
---|
| 114 | </sect3>
|
---|
| 115 |
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 role="content">
|
---|
| 119 | <title>Contents</title>
|
---|
| 120 |
|
---|
| 121 | <segmentedlist>
|
---|
| 122 | <segtitle>Installed Programs</segtitle>
|
---|
| 123 | <segtitle>Installed Library</segtitle>
|
---|
| 124 | <segtitle>Installed Director(y,ies)</segtitle>
|
---|
| 125 |
|
---|
| 126 | <seglistitem>
|
---|
| 127 | <seg>chacl, getfacl, and setfacl</seg>
|
---|
| 128 | <seg>libacl.{so,a}</seg>
|
---|
| 129 | <seg>/usr/{include/acl,share/doc/acl-&acl-version;}</seg>
|
---|
| 130 | </seglistitem>
|
---|
| 131 | </segmentedlist>
|
---|
| 132 |
|
---|
| 133 | <variablelist>
|
---|
| 134 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 135 | <?dbfo list-presentation="list"?>
|
---|
| 136 | <?dbhtml list-presentation="table"?>
|
---|
| 137 |
|
---|
| 138 | <varlistentry id="chacl">
|
---|
| 139 | <term><command>chacl</command></term>
|
---|
| 140 | <listitem>
|
---|
| 141 | <para>changes the access control list of a file or directory.</para>
|
---|
| 142 | <indexterm zone="acl chacl">
|
---|
| 143 | <primary sortas="b-chacl">chacl</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="getfacl">
|
---|
| 149 | <term><command>getfacl</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>gets file access control lists.</para>
|
---|
| 152 | <indexterm zone="acl getfacl">
|
---|
| 153 | <primary sortas="b-getfacl">getfacl</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="setfacl">
|
---|
| 159 | <term><command>setfacl</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>sets file access control lists.</para>
|
---|
| 162 | <indexterm zone="acl setfacl">
|
---|
| 163 | <primary sortas="b-setfacl">setfacl</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="libacl">
|
---|
| 169 | <term><filename class='libraryfile'>libacl.{so,a}</filename></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>contains the <application>acl</application> API functions.</para>
|
---|
| 172 | <indexterm zone="acl libacl">
|
---|
| 173 | <primary sortas="c-libacl">libacl.{so,a}</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | </variablelist>
|
---|
| 179 |
|
---|
| 180 | </sect2>
|
---|
| 181 |
|
---|
| 182 | </sect1>
|
---|