source: general/sysutils/autofs.xml@ ba902838

gnome
Last change on this file since ba902838 was c463c87, checked in by Christopher Gregory <cjg@…>, 10 years ago

Removed excess white space and updated systemd instructions on svnserver autofs bluez fcron sysstat nfs-utils ntp rsync samba wpa_supplicant
avahi mariadb postgresql exim postfix apache bind proftpd vsftpd openldap unbound xinetd and clutter pages

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/gnome@13434 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.0 KB
Line 
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 autofs-download-http "http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.xz">
8 <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.xz">
9 <!ENTITY autofs-md5sum "4c34cacea07db3681b0da1befa229ec4">
10 <!ENTITY autofs-size "284 KB">
11 <!ENTITY autofs-buildsize "9.7 MB">
12 <!ENTITY autofs-time "0.1 SBU">
13]>
14
15<sect1 id="autofs" xreflabel="Autofs-&autofs-version;">
16 <?dbhtml filename="autofs.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>autofs-&autofs-version;</title>
24
25 <indexterm zone="autofs">
26 <primary sortas="a-Autofs">Autofs</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Autofs</title>
31
32 <para>
33 <application>Autofs</application> controls the operation of the automount
34 daemons. The automount daemons automatically mount filesystems when they
35 are accessed and unmount them after a period of inactivity. This is done
36 based on a set of pre-configured maps.
37 </para>
38
39 &lfs75_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>Download (HTTP): <ulink url="&autofs-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&autofs-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &autofs-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &autofs-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &autofs-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time: &autofs-time;</para>
60 </listitem>
61 </itemizedlist>
62
63 <bridgehead renderas="sect3">Autofs Dependencies</bridgehead>
64
65 <bridgehead renderas="sect4">Optional</bridgehead>
66 <para role="optional">
67 <xref linkend="libtirpc"/>,
68 <xref linkend="nfs-utils"/>,
69 <xref linkend="libxml2"/>,
70 <xref linkend="mitkrb"/>,
71 <xref linkend="openldap"/> (client only), and
72 <xref linkend="cyrus-sasl"/>
73 </para>
74
75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/autofs"/></para>
77
78 </sect2>
79
80 <sect2 role="kernel" id="autofs-kernel">
81 <title>Kernel Configuration</title>
82
83 <indexterm zone="autofs autofs-kernel">
84 <primary sortas="d-Automounter">Automounter</primary>
85 </indexterm>
86
87 <para>
88 Verify that automounter kernel support has been enabled:
89 </para>
90
91<screen><literal>File systems ---&gt;
92 Kernel automounter version 4 support (also supports v3): Y or M</literal></screen>
93
94 <para>
95 Optionally, enable the following options in the kernel configuration:
96 </para>
97
98<screen><literal>File systems ---&gt;
99 Network File Systems ---&gt;
100 NFS client support: Y or M
101 CIFS support (advanced network filesystem, SMBFS successor): Y or M</literal></screen>
102
103 <para>Recompile and install the new kernel, if necessary.</para>
104
105 </sect2>
106
107 <sect2 role="installation">
108
109 <title>Installation of Autofs</title>
110
111 <para>Install <application>Autofs</application> by running the following
112 commands:</para>
113
114<screen><userinput>sed -i -e '/include.*config.h/ i #include &lt;stdarg.h&gt;' lib/defaults.c &amp;&amp;
115
116./configure --prefix=/ \
117 --without-openldap \
118 --with-systemd \
119 --mandir=/usr/share/man &amp;&amp;
120make</userinput></screen>
121
122 <para>This package does not come with a test suite.</para>
123
124 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
125
126<screen role="root"><userinput>make install</userinput></screen>
127
128 </sect2>
129
130 <sect2 role="commands">
131 <title>Command Explanations</title>
132
133 <para>
134 <command>sed ... lib/defaults.c</command>: Fix a build problem with current
135 headers.
136 </para>
137
138 <para>
139 <option>--with-libtirpc</option>: This switch enables libtirpc support if
140 available.
141 </para>
142
143 <para>
144 <option>--with-systemd</option>: This switch enables systemd support.
145 </para>
146
147 <para>
148 <option>--without-openldap</option>: This switch disables openldap if found. If
149 openldap is desired, omit this switch. Note that openldap support in autofs
150 requires <xref linkend="mitkrb"/>.
151 </para>
152
153 </sect2>
154
155 <sect2 role="configuration">
156 <title>Configuring Autofs</title>
157
158 <sect3 id="autofs-config">
159 <title>Config Files</title>
160
161 <para><filename>/etc/sysconfig/autofs.conf</filename>,
162 <filename>/etc/auto.master</filename>,
163 <filename>/etc/auto.misc</filename>, and
164 <filename>/etc/auto.net</filename></para>
165
166 <indexterm zone="autofs autofs-config" >
167 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
168 </indexterm>
169
170 <indexterm zone="autofs autofs-config">
171 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
172 </indexterm>
173
174 <indexterm zone="autofs autofs-config">
175 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
176 </indexterm>
177
178 <indexterm zone="autofs autofs-config">
179 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
180 </indexterm>
181
182 </sect3>
183
184 <sect3>
185 <title>Configuration Information</title>
186
187 <para>The installation process creates <filename>auto.master</filename>,
188 <filename>auto.misc</filename>, <filename>auto.smb</filename>, and
189 <filename>auto.net</filename>. Replace the
190 <filename>auto.master</filename> file with the following commands
191 as the <systemitem class="username">root</systemitem> user:</para>
192
193<screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
194cat &gt; /etc/auto.master &lt;&lt; "EOF"
195<literal># Begin /etc/auto.master
196
197/media/auto /etc/auto.misc --ghost
198#/home /etc/auto.home
199
200# End /etc/auto.master</literal>
201EOF</userinput></screen>
202
203 <para>This file creates a new media directory, <filename>/media/auto</filename>
204 that will overlay any existing directory of the same name. In this example,
205 the file, <filename>/etc/auto.misc</filename>, has a line:</para>
206
207<screen>cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom</screen>
208
209 <para>that will mount a cdrom as <filename>/media/auto/cd</filename> if
210 that directory is accessed. The <option>--ghost</option> option tells
211 the automounter to create <quote>ghost</quote> versions (i.e. empty
212 directories) of all the mount points listed in the configuration file
213 regardless whether any of the file systems are actually mounted or not.
214 This is very convenient and highly recommended, because it will show you
215 the available auto-mountable file systems as existing directories, even
216 when their file systems aren't currently mounted. Without the
217 <option>--ghost</option> option, you'll have to remember the names of the
218 directories. As soon as you try to access one of them, the directory will
219 be created and the file system will be mounted. When the file system gets
220 unmounted again, the directory is destroyed too, unless the
221 <option>--ghost</option> option was given.</para>
222
223 <note>
224 <para>An alternative method would be to specify another automount
225 location such as <filename
226 class='directory'>/var/lib/auto/cdrom</filename> and create a
227 symbolic link from <filename class='directory'>/media/cdrom</filename>
228 to the automount location.</para>
229 </note>
230
231 <para>The <filename>auto.misc</filename> file must be configured to your
232 working hardware. The loaded configuration file should load your cdrom
233 if <filename>/dev/cdrom</filename> is active or it can be edited to
234 match your device setup. Examples for floppies are available in the file
235 and easily activated. Documentation for this file is available using the
236 <command>man 5 autofs</command> command.</para>
237
238 <para>In the second line, if enabled, a user's home directory would be
239 mounted via NFS upon login. The <filename>/etc/home.auto</filename>
240 would need to exist and have an entry similar to:</para>
241
242<screen>joe example.org:/export/home/joe</screen>
243
244 <para>where the directory <filename>/export/home/joe</filename> is
245 exported via NFS from the system example.org. NFS shares
246 are covered on the next page.</para>
247
248 <para>This package could also be used to mount SMB shares, however that
249 feature is not configured in these instructions. For additional
250 configuration information, see the man pages for auto.master(5). There
251 are also web resources such as this <ulink
252 url='http://wiki.gentoo.org/wiki/Autofs'>AUTOFS
253 HOWTO</ulink> available.</para>
254
255 </sect3>
256
257 <sect3 id="autofs-init-systemd">
258 <title>Systemd Unit File</title>
259
260 <para> This package provides a systemd unit file in the source tarball. To enable it,
261 issue the following command as the <systemitem class="username">root</systemitem>
262 user:</para>
263
264 <indexterm zone="autofs autofs-init-systemd">
265 <primary sortas="f-autofs-init">autofs</primary>
266 </indexterm>
267
268<screen role="root"><userinput>systemctl enable autofs</userinput></screen>
269
270 <note>
271 <para>
272 You can also specify $OPTIONS variable in /etc/sysconfig/autofs with
273 any additional parameters that you might want to pass to the
274 automount daemon.
275 </para>
276 </note>
277 </sect3>
278
279 </sect2>
280
281 <sect2 role="content">
282 <title>Contents</title>
283
284 <segmentedlist>
285 <segtitle>Installed Program</segtitle>
286 <segtitle>Installed Libraries</segtitle>
287 <segtitle>Installed Directories</segtitle>
288
289 <seglistitem>
290 <seg>automount</seg>
291 <seg>lookup_dir.so, lookup_file.so, lookup_hosts.so, lookup_ldap.so,
292 lookup_multi.so, lookup_nisplus.so, lookup_program.so,
293 lookup_userhome.so, lookup_yp.so, mount_afs.so, mount_autofs.so,
294 mount_bind.so, mount_changer.so, mount_ext2.so, mount_generic.so,
295 mount_nfs.so, parse_sun.so</seg>
296 <seg>/lib/autofs</seg>
297 </seglistitem>
298 </segmentedlist>
299
300 <variablelist>
301 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
302 <?dbfo list-presentation="list"?>
303 <?dbhtml list-presentation="table"?>
304
305 <varlistentry id="automount">
306 <term><command>automount</command></term>
307 <listitem>
308 <para>is the daemon that performs the mounting when a request is
309 made for the device.</para>
310 <indexterm zone="autofs automount">
311 <primary sortas="b-automount">automount</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 </variablelist>
317
318 </sect2>
319
320</sect1>
Note: See TracBrowser for help on using the repository browser.