[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">
|
---|
| 8 | <!ENTITY acl-download-ftp "ftp://oss.sgi.com/projects/xfs/cmd_tars-oct_09/acl-&acl-version;.src.tar.gz">
|
---|
[10033899] | 9 | <!ENTITY acl-md5sum "181445894cca986da9ae0099d5ce2d08">
|
---|
| 10 | <!ENTITY acl-size "362 KB">
|
---|
[1f25cea9] | 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 |
|
---|
[10033899] | 74 | <screen><userinput>sed -i "s|/@pkg_name@|&-@pkg_version@|" include/builddefs.in &&
|
---|
| 75 | ./configure --prefix=/usr --libexecdir=/usr/lib &&
|
---|
[1f25cea9] | 76 | make</userinput></screen>
|
---|
| 77 |
|
---|
| 78 | <para>For meaningful results, the tests need to be carried out on a file
|
---|
| 79 | system that supports extended attributes. It is also required that
|
---|
| 80 | <application>Coreutils</application> is re-installed after
|
---|
| 81 | <application>acl</application> is installed so that the extra acl bit
|
---|
| 82 | displays correctly on a ls command. Some failures will occur due to a
|
---|
| 83 | missing script called sort-getfattr-output which is not part fo the
|
---|
| 84 | tarball.</para>
|
---|
| 85 |
|
---|
| 86 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 87 |
|
---|
[10033899] | 88 | <screen role="root"><userinput>make install install-dev install-lib</userinput></screen>
|
---|
[1f25cea9] | 89 |
|
---|
[c9354ea0] | 90 | <para>You should now re-install <application><ulink
|
---|
[49b9df3c] | 91 | url="&lfs-root;/chapter06/coreutils.html">Coreutils</ulink>
|
---|
[c9354ea0] | 92 | </application> and proceed to run the test suite.</para>
|
---|
[1f25cea9] | 93 |
|
---|
| 94 | <para>There are three sets of tests that come with this package. Issue the
|
---|
| 95 | following to execute all three:
|
---|
| 96 | <command>make tests root-tests ext-tests</command>.</para>
|
---|
| 97 |
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
[10033899] | 100 | <sect2 role="commands">
|
---|
| 101 | <title>Command Explanations</title>
|
---|
| 102 |
|
---|
| 103 | <para><command>sed -i ... include/builddefs.in</command>: This command
|
---|
| 104 | changes the documentation directory to a versioned directory.</para>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
[1f25cea9] | 108 | <sect2 role="configuration">
|
---|
| 109 | <title>Configuring attr</title>
|
---|
| 110 | <sect3><title>Configuration Information</title>
|
---|
| 111 |
|
---|
| 112 | <para>There is no configuration to <application>acl</application> itself,
|
---|
| 113 | but to get any use out of <application>acl</application>, a filesystem
|
---|
| 114 | needs to support access control lists.</para>
|
---|
| 115 |
|
---|
| 116 | <para>One way to achieve this is to add the acl option to an ext3
|
---|
| 117 | filesystem in the /etc/fstab file as shown below.</para>
|
---|
| 118 |
|
---|
| 119 | <screen># file system mount-point type options dump fsck
|
---|
| 120 | # order
|
---|
| 121 |
|
---|
| 122 | /dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
|
---|
| 123 |
|
---|
| 124 | </sect3>
|
---|
| 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="content">
|
---|
| 129 | <title>Contents</title>
|
---|
| 130 |
|
---|
| 131 | <segmentedlist>
|
---|
| 132 | <segtitle>Installed Programs</segtitle>
|
---|
| 133 | <segtitle>Installed Library</segtitle>
|
---|
[2bb9a3a] | 134 | <segtitle>Installed Directories</segtitle>
|
---|
[1f25cea9] | 135 |
|
---|
| 136 | <seglistitem>
|
---|
| 137 | <seg>chacl, getfacl, and setfacl</seg>
|
---|
| 138 | <seg>libacl.{so,a}</seg>
|
---|
| 139 | <seg>/usr/{include/acl,share/doc/acl-&acl-version;}</seg>
|
---|
| 140 | </seglistitem>
|
---|
| 141 | </segmentedlist>
|
---|
| 142 |
|
---|
| 143 | <variablelist>
|
---|
| 144 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 145 | <?dbfo list-presentation="list"?>
|
---|
| 146 | <?dbhtml list-presentation="table"?>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="chacl">
|
---|
| 149 | <term><command>chacl</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>changes the access control list of a file or directory.</para>
|
---|
| 152 | <indexterm zone="acl chacl">
|
---|
| 153 | <primary sortas="b-chacl">chacl</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="getfacl">
|
---|
| 159 | <term><command>getfacl</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>gets file access control lists.</para>
|
---|
| 162 | <indexterm zone="acl getfacl">
|
---|
| 163 | <primary sortas="b-getfacl">getfacl</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="setfacl">
|
---|
| 169 | <term><command>setfacl</command></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>sets file access control lists.</para>
|
---|
| 172 | <indexterm zone="acl setfacl">
|
---|
| 173 | <primary sortas="b-setfacl">setfacl</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="libacl">
|
---|
| 179 | <term><filename class='libraryfile'>libacl.{so,a}</filename></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>contains the <application>acl</application> API functions.</para>
|
---|
| 182 | <indexterm zone="acl libacl">
|
---|
| 183 | <primary sortas="c-libacl">libacl.{so,a}</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
| 188 | </variablelist>
|
---|
| 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | </sect1>
|
---|