source: general/sysutils/autofs.xml@ 360e30c0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 360e30c0 was 360e30c0, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to cmake-3.8.2.
Update to mpg123-1.25.0.
Update to sudo-1.8.20p1.
Update to autofs-5.1.3.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18799 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.3 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 " ">
9 <!ENTITY autofs-md5sum "57a6791e596b8b8ee2c4c50420881180">
10 <!ENTITY autofs-size "296 KB">
11 <!ENTITY autofs-buildsize "7.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 &lfs80_checked;
40 &gcc7_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&autofs-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&autofs-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &autofs-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &autofs-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &autofs-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &autofs-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">Autofs Dependencies</bridgehead>
65
66 <bridgehead renderas="sect4">Optional</bridgehead>
67 <para role="optional">
68 <xref linkend="libtirpc"/>,
69 <xref linkend="nfs-utils"/>,
70 <xref linkend="libxml2"/>,
71 <xref linkend="mitkrb"/>,
72 <xref linkend="openldap"/> (client only), and
73 <xref linkend="cyrus-sasl"/>
74 </para>
75
76 <para condition="html" role="usernotes">User Notes:
77 <ulink url="&blfs-wiki;/autofs"/></para>
78
79 </sect2>
80
81 <sect2 role="kernel" id="autofs-kernel">
82 <title>Kernel Configuration</title>
83
84 <indexterm zone="autofs autofs-kernel">
85 <primary sortas="d-Automounter">Automounter</primary>
86 </indexterm>
87
88 <para>
89 Verify that automounter kernel support has been enabled:
90 </para>
91
92<screen><literal>File systems ---&gt;
93 &lt;*/M&gt; Kernel automounter version 4 support (also supports v3) [CONFIG_AUTOFS4_FS]</literal></screen>
94
95 <para>
96 Optionally, enable the following options in the kernel configuration:
97 </para>
98
99<screen><literal>File systems ---&gt;
100 [*] Network File Systems ---&gt; [CONFIG_NETWORK_FILESYSTEMS]
101 &lt;*/M&gt; NFS client support [CONFIG_NFS_FS]
102 &lt;*/M&gt; CIFS support (advanced network filesystem, SMBFS successor) [CONFIG_CIFS]</literal></screen>
103
104 <para>Recompile and install the new kernel, if necessary.</para>
105
106 </sect2>
107
108 <sect2 role="installation">
109
110 <title>Installation of Autofs</title>
111
112 <para>Install <application>Autofs</application> by running the following
113 commands:</para>
114
115<screen revision="sysv"><userinput>./configure --prefix=/ \
116 --without-openldap \
117 --mandir=/usr/share/man &amp;&amp;
118make</userinput></screen>
119
120<screen revision="systemd"><userinput>./configure --prefix=/ \
121 --with-systemd \
122 --without-openldap \
123 --mandir=/usr/share/man &amp;&amp;
124make</userinput></screen>
125
126 <para>This package does not come with a test suite.</para>
127
128 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
129
130<screen role="root"><userinput>make install</userinput></screen>
131
132 </sect2>
133
134 <sect2 role="commands">
135 <title>Command Explanations</title>
136
137 <para revision="systemd">
138 <parameter>--with-systemd</parameter>: This switch enables installation
139 of the bundled systemd units.
140 </para>
141
142 <para>
143 <parameter>--without-openldap</parameter>: This switch disables openldap
144 if found. If openldap is desired, omit this switch. Note that openldap
145 support in autofs requires <xref linkend="mitkrb"/>.
146 </para>
147
148 <para>
149 <option>--with-libtirpc</option>: This switch enables libtirpc support if
150 available.
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">
258 <title><phrase revision="sysv">Boot Script</phrase>
259 <phrase revision="systemd">Systemd Unit</phrase></title>
260
261 <para revision="sysv"><application>autofs</application> installs its own
262 boot script, but it has no capability for logging or visual conformance
263 with other BLFS scripts.</para>
264
265 <para revision="sysv">Install the <filename>/etc/init.d/autofs</filename>
266 mount script included with the <xref linkend="bootscripts"/>
267 package.</para>
268
269 <para revision="systemd">
270 To start <application>Autofs</application> at boot, enable the
271 previously installed systemd unit by running the following command as
272 the <systemitem class="username">root</systemitem> user:
273 </para>
274
275 <indexterm zone="autofs autofs-init">
276 <primary sortas="f-autofs-init">autofs</primary>
277 </indexterm>
278
279<screen role="root" revision="sysv"><userinput>make install-autofs</userinput></screen>
280
281<screen role="root" revision="systemd"><userinput>systemctl enable autofs</userinput></screen>
282
283 <para revision="sysv">The time-out variable is set in
284 <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
285 a default of 60 seconds of inactivity before unmounting the device. A
286 much shorter time may be necessary to protect buffer writing to a floppy
287 if users tend to remove the media prior to the timeout setting.</para>
288
289 <note revision="systemd">
290 <para>
291 You can also specify <envar>OPTIONS</envar> variable in the
292 <filename>/etc/sysconfig/autofs</filename> file with any additional
293 parameters that you might want to pass to the automount daemon.
294 </para>
295 </note>
296
297 </sect3>
298
299 </sect2>
300
301 <sect2 role="content">
302 <title>Contents</title>
303
304 <segmentedlist>
305 <segtitle>Installed Program</segtitle>
306 <segtitle>Installed Libraries</segtitle>
307 <segtitle>Installed Directories</segtitle>
308
309 <seglistitem>
310 <seg>automount</seg>
311 <seg>
312 lookup_dir.so, lookup_file.so, lookup_files.so, lookup_hosts.so,
313 lookup_ldap.so, lookup_multi.so, lookup_nis.so, lookup_nisplus.so,
314 lookup_program.so, lookup_userhome.so, lookup_yp.so, mount_afs.so,
315 mount_autofs.so, mount_bind.so, mount_changer.so, mount_ext2.so,
316 mount_ext3.so, mount_ext4.so, mount_generic.so, mount_nfs.so,
317 mount_nfs4.so, parse_amd.so, and parse_sun.so
318 </seg>
319 <seg>/lib/autofs</seg>
320 </seglistitem>
321 </segmentedlist>
322
323 <variablelist>
324 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
325 <?dbfo list-presentation="list"?>
326 <?dbhtml list-presentation="table"?>
327
328 <varlistentry id="automount">
329 <term><command>automount</command></term>
330 <listitem>
331 <para>is the daemon that performs the mounting when a request is
332 made for the device.</para>
333 <indexterm zone="autofs automount">
334 <primary sortas="b-automount">automount</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 </variablelist>
340
341 </sect2>
342
343</sect1>
Note: See TracBrowser for help on using the repository browser.