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://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"> -->
|
---|
9 | <!ENTITY acl-download-ftp " ">
|
---|
10 | <!ENTITY acl-md5sum "181445894cca986da9ae0099d5ce2d08">
|
---|
11 | <!ENTITY acl-size "362 KB">
|
---|
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 |
|
---|
37 | <para>&lfssvn_checked;20101029&lfssvn_checked2;</para>
|
---|
38 |
|
---|
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 |
|
---|
77 | <screen><userinput>sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \
|
---|
78 | -e 's|@prefix|$(DESTDIR)&|' \
|
---|
79 | -e 's|@libexec|$(DESTDIR)&|' \
|
---|
80 | include/builddefs.in &&
|
---|
81 |
|
---|
82 | ./configure --prefix=/usr --libexecdir=/usr/lib &&
|
---|
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
|
---|
89 | displays correctly on a <command>ls</command> command. Some failures will
|
---|
90 | occur due to a missing script called
|
---|
91 | <filename>sort-getfattr-output</filename> which is not part of the
|
---|
92 | tarball.</para>
|
---|
93 |
|
---|
94 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
95 |
|
---|
96 | <screen role="root"><userinput>make install install-dev install-lib &&
|
---|
97 | install -v -m644 doc/*.txt /usr/share/doc/acl-&acl-version; &&
|
---|
98 | chmod -v 755 /usr/lib/libacl.{la,so.1.1.0}</userinput></screen>
|
---|
99 |
|
---|
100 | <para>You should now re-install <application><ulink
|
---|
101 | url="&lfs-root;/chapter06/coreutils.html">Coreutils</ulink>
|
---|
102 | </application> and proceed to run the test suite.</para>
|
---|
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 |
|
---|
110 | <sect2 role="commands">
|
---|
111 | <title>Command Explanations</title>
|
---|
112 |
|
---|
113 | <para><command>sed -i ... include/builddefs.in</command>: This command
|
---|
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>
|
---|
119 |
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2 role="configuration">
|
---|
123 | <title>Configuring acl</title>
|
---|
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
|
---|
131 | filesystem in the <filename>/etc/fstab</filename> file as shown
|
---|
132 | below:</para>
|
---|
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>
|
---|
149 | <segtitle>Installed Directories</segtitle>
|
---|
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>
|
---|