source: general/sysutils/autofs.xml@ 0a43695

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 0a43695 was a081a2d9, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Update to opencv-3.4.0.
Update to cups-filters-1.18.0.
Update to doxygen-1.8.14.
Update to libatomic_ops-7.4.10.
Update to webkitgtk-2.18.4.
Update to autofs-5.1.4.
Update to LVM2-2.2.02.177.

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

  • Property mode set to 100644
File size: 12.5 KB
RevLine 
[7ef22cf]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[7ef22cf]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[d17b13d]6
[8dfc5c3]7 <!ENTITY autofs-download-http "&kernel-dl;/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.xz">
[faa68e4a]8 <!ENTITY autofs-download-ftp " ">
[a081a2d9]9 <!ENTITY autofs-md5sum "5d35e3282e7a47ec1a5acaeebcc51db2">
10 <!ENTITY autofs-size "300 KB">
11 <!ENTITY autofs-buildsize "7.6 MB">
[5e7ffd30]12 <!ENTITY autofs-time "0.1 SBU">
[7ef22cf]13]>
14
[32d0e29]15<sect1 id="autofs" xreflabel="Autofs-&autofs-version;">
[d3ad3271]16 <?dbhtml filename="autofs.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[6d15c62]23 <title>autofs-&autofs-version;</title>
[d3ad3271]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
[d17b13d]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>
[47be189b]38
[ad09e9f5]39 &lfs81_checked;
[d3ad3271]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>
[fd7e0ed6]62
[81066706]63 <bridgehead renderas="sect3">Autofs Dependencies</bridgehead>
[50d1a60]64
[ad09e9f5]65 <bridgehead renderas="sect4">Required</bridgehead>
66 <para role="required">
[a65876c]67 <xref linkend="libtirpc"/>
[ad09e9f5]68 </para>
69
[d17b13d]70 <bridgehead renderas="sect4">Optional</bridgehead>
71 <para role="optional">
72 <xref linkend="nfs-utils"/>,
73 <xref linkend="libxml2"/>,
74 <xref linkend="mitkrb"/>,
75 <xref linkend="openldap"/> (client only), and
76 <xref linkend="cyrus-sasl"/>
77 </para>
[50d1a60]78
[3597eb6]79 <para condition="html" role="usernotes">User Notes:
80 <ulink url="&blfs-wiki;/autofs"/></para>
81
[d3ad3271]82 </sect2>
83
84 <sect2 role="kernel" id="autofs-kernel">
85 <title>Kernel Configuration</title>
86
87 <indexterm zone="autofs autofs-kernel">
88 <primary sortas="d-Automounter">Automounter</primary>
89 </indexterm>
90
[d17b13d]91 <para>
92 Verify that automounter kernel support has been enabled:
93 </para>
94
95<screen><literal>File systems ---&gt;
[38155d1]96 &lt;*/M&gt; Kernel automounter version 4 support (also supports v3) [CONFIG_AUTOFS4_FS]</literal></screen>
[d17b13d]97
98 <para>
99 Optionally, enable the following options in the kernel configuration:
100 </para>
[d3ad3271]101
[d17b13d]102<screen><literal>File systems ---&gt;
[38155d1]103 [*] Network File Systems ---&gt; [CONFIG_NETWORK_FILESYSTEMS]
104 &lt;*/M&gt; NFS client support [CONFIG_NFS_FS]
105 &lt;*/M&gt; CIFS support (advanced network filesystem, SMBFS successor) [CONFIG_CIFS]</literal></screen>
[d612b9f]106
[d3ad3271]107 <para>Recompile and install the new kernel, if necessary.</para>
[7ef22cf]108
[d3ad3271]109 </sect2>
[0290a023]110
[d3ad3271]111 <sect2 role="installation">
[d612b9f]112
[d3ad3271]113 <title>Installation of Autofs</title>
114
[32d0e29]115 <para>Install <application>Autofs</application> by running the following
[d3ad3271]116 commands:</para>
[d17b13d]117
[d5497a2e]118<screen revision="sysv"><userinput>./configure --prefix=/ \
[a65876c]119 --with-libtirpc \
[d5497a2e]120 --without-openldap \
121 --mandir=/usr/share/man &amp;&amp;
122make</userinput></screen>
123
124<screen revision="systemd"><userinput>./configure --prefix=/ \
[a65876c]125 --with-libtirpc \
[d5497a2e]126 --with-systemd \
[73b53eb]127 --without-openldap \
128 --mandir=/usr/share/man &amp;&amp;
[ad09e9f5]129
[a65876c]130make</userinput></screen>
[d3ad3271]131
[d4bf650a]132 <para>This package does not come with a test suite.</para>
133
[d3ad3271]134 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
135
[47be189b]136<screen role="root"><userinput>make install</userinput></screen>
[d3ad3271]137
138 </sect2>
[d17b13d]139
[d3ad3271]140 <sect2 role="commands">
141 <title>Command Explanations</title>
142
[a65876c]143 <para>
144 <parameter>--with-libtirpc</parameter>: This switch forces the package to
145 use libtirpc for RPC functionality instead of relying on implementation
146 from Glibc, which was removed in LFS 8.1.
147 </para>
148
[d5497a2e]149 <para revision="systemd">
150 <parameter>--with-systemd</parameter>: This switch enables installation
151 of the bundled systemd units.
152 </para>
153
[d17b13d]154 <para>
[f1d7196]155 <parameter>--without-openldap</parameter>: This switch disables openldap
156 if found. If openldap is desired, omit this switch. Note that openldap
157 support in autofs requires <xref linkend="mitkrb"/>.
[d17b13d]158 </para>
[d260aaf4]159
[d3ad3271]160 </sect2>
[d17b13d]161
[d3ad3271]162 <sect2 role="configuration">
163 <title>Configuring Autofs</title>
[7ef22cf]164
[d3ad3271]165 <sect3 id="autofs-config">
166 <title>Config Files</title>
[7ef22cf]167
[d3ad3271]168 <para><filename>/etc/sysconfig/autofs.conf</filename>,
169 <filename>/etc/auto.master</filename>,
170 <filename>/etc/auto.misc</filename>, and
171 <filename>/etc/auto.net</filename></para>
[7ef22cf]172
[d3ad3271]173 <indexterm zone="autofs autofs-config" >
174 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
175 </indexterm>
[7ef22cf]176
[d3ad3271]177 <indexterm zone="autofs autofs-config">
178 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
179 </indexterm>
[7ef22cf]180
[d3ad3271]181 <indexterm zone="autofs autofs-config">
182 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
183 </indexterm>
[7ef22cf]184
[d3ad3271]185 <indexterm zone="autofs autofs-config">
186 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
187 </indexterm>
[7ef22cf]188
[d3ad3271]189 </sect3>
[7ef22cf]190
[d3ad3271]191 <sect3>
192 <title>Configuration Information</title>
[7ef22cf]193
[d3ad3271]194 <para>The installation process creates <filename>auto.master</filename>,
[d4bf650a]195 <filename>auto.misc</filename>, <filename>auto.smb</filename>, and
[32d0e29]196 <filename>auto.net</filename>. Replace the
[69243a9]197 <filename>auto.master</filename> file with the following commands
198 as the <systemitem class="username">root</systemitem> user:</para>
[d3ad3271]199
200<screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
201cat &gt; /etc/auto.master &lt;&lt; "EOF"
202<literal># Begin /etc/auto.master
[7ef22cf]203
[9415459]204/media/auto /etc/auto.misc --ghost
205#/home /etc/auto.home
[7ef22cf]206
[d3ad3271]207# End /etc/auto.master</literal>
208EOF</userinput></screen>
209
[9415459]210 <para>This file creates a new media directory, <filename>/media/auto</filename>
211 that will overlay any existing directory of the same name. In this example,
212 the file, <filename>/etc/auto.misc</filename>, has a line:</para>
213
214<screen>cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom</screen>
215
216 <para>that will mount a cdrom as <filename>/media/auto/cd</filename> if
217 that directory is accessed. The <option>--ghost</option> option tells
[32d0e29]218 the automounter to create <quote>ghost</quote> versions (i.e. empty
219 directories) of all the mount points listed in the configuration file
220 regardless whether any of the file systems are actually mounted or not.
221 This is very convenient and highly recommended, because it will show you
222 the available auto-mountable file systems as existing directories, even
223 when their file systems aren't currently mounted. Without the
224 <option>--ghost</option> option, you'll have to remember the names of the
225 directories. As soon as you try to access one of them, the directory will
226 be created and the file system will be mounted. When the file system gets
227 unmounted again, the directory is destroyed too, unless the
228 <option>--ghost</option> option was given.</para>
[9415459]229
[d3ad3271]230 <note>
[9415459]231 <para>An alternative method would be to specify another automount
[32d0e29]232 location such as <filename
233 class='directory'>/var/lib/auto/cdrom</filename> and create a
234 symbolic link from <filename class='directory'>/media/cdrom</filename>
235 to the automount location.</para>
[d612b9f]236 </note>
[d3ad3271]237
[9415459]238 <para>The <filename>auto.misc</filename> file must be configured to your
[d3ad3271]239 working hardware. The loaded configuration file should load your cdrom
240 if <filename>/dev/cdrom</filename> is active or it can be edited to
[9415459]241 match your device setup. Examples for floppies are available in the file
[d3ad3271]242 and easily activated. Documentation for this file is available using the
243 <command>man 5 autofs</command> command.</para>
244
[9415459]245 <para>In the second line, if enabled, a user's home directory would be
246 mounted via NFS upon login. The <filename>/etc/home.auto</filename>
247 would need to exist and have an entry similar to:</para>
248
249<screen>joe example.org:/export/home/joe</screen>
250
251 <para>where the directory <filename>/export/home/joe</filename> is
252 exported via NFS from the system example.org. NFS shares
253 are covered on the next page.</para>
254
[32d0e29]255 <para>This package could also be used to mount SMB shares, however that
256 feature is not configured in these instructions. For additional
257 configuration information, see the man pages for auto.master(5). There
[9415459]258 are also web resources such as this <ulink
[cc12b02]259 url='http://wiki.gentoo.org/wiki/AutoFS'>AUTOFS
[32d0e29]260 HOWTO</ulink> available.</para>
[9415459]261
[d3ad3271]262 </sect3>
[32d0e29]263
[d3ad3271]264 <sect3 id="autofs-init">
[d5497a2e]265 <title><phrase revision="sysv">Boot Script</phrase>
266 <phrase revision="systemd">Systemd Unit</phrase></title>
267
268 <para revision="sysv"><application>autofs</application> installs its own
269 boot script, but it has no capability for logging or visual conformance
270 with other BLFS scripts.</para>
[d3ad3271]271
[d5497a2e]272 <para revision="sysv">Install the <filename>/etc/init.d/autofs</filename>
273 mount script included with the <xref linkend="bootscripts"/>
274 package.</para>
[d3ad3271]275
[d5497a2e]276 <para revision="systemd">
277 To start <application>Autofs</application> at boot, enable the
278 previously installed systemd unit by running the following command as
279 the <systemitem class="username">root</systemitem> user:
280 </para>
[d3ad3271]281
282 <indexterm zone="autofs autofs-init">
283 <primary sortas="f-autofs-init">autofs</primary>
284 </indexterm>
285
[d5497a2e]286<screen role="root" revision="sysv"><userinput>make install-autofs</userinput></screen>
287
288<screen role="root" revision="systemd"><userinput>systemctl enable autofs</userinput></screen>
[d3ad3271]289
[d5497a2e]290 <para revision="sysv">The time-out variable is set in
[d3ad3271]291 <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
292 a default of 60 seconds of inactivity before unmounting the device. A
[e0d33ef]293 much shorter time may be necessary to protect buffer writing to a floppy
[d3ad3271]294 if users tend to remove the media prior to the timeout setting.</para>
295
[d5497a2e]296 <note revision="systemd">
297 <para>
298 You can also specify <envar>OPTIONS</envar> variable in the
299 <filename>/etc/sysconfig/autofs</filename> file with any additional
300 parameters that you might want to pass to the automount daemon.
301 </para>
302 </note>
303
[d3ad3271]304 </sect3>
[32d0e29]305
[d3ad3271]306 </sect2>
307
308 <sect2 role="content">
309 <title>Contents</title>
310
311 <segmentedlist>
312 <segtitle>Installed Program</segtitle>
313 <segtitle>Installed Libraries</segtitle>
314 <segtitle>Installed Directories</segtitle>
315
316 <seglistitem>
317 <seg>automount</seg>
[9fe905c]318 <seg>
319 lookup_dir.so, lookup_file.so, lookup_files.so, lookup_hosts.so,
320 lookup_ldap.so, lookup_multi.so, lookup_nis.so, lookup_nisplus.so,
321 lookup_program.so, lookup_userhome.so, lookup_yp.so, mount_afs.so,
322 mount_autofs.so, mount_bind.so, mount_changer.so, mount_ext2.so,
323 mount_ext3.so, mount_ext4.so, mount_generic.so, mount_nfs.so,
324 mount_nfs4.so, parse_amd.so, and parse_sun.so
325 </seg>
[47be189b]326 <seg>/lib/autofs</seg>
[d3ad3271]327 </seglistitem>
328 </segmentedlist>
329
330 <variablelist>
331 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
332 <?dbfo list-presentation="list"?>
333 <?dbhtml list-presentation="table"?>
334
335 <varlistentry id="automount">
336 <term><command>automount</command></term>
337 <listitem>
[e0d33ef]338 <para>is the daemon that performs the mounting when a request is
[d3ad3271]339 made for the device.</para>
340 <indexterm zone="autofs automount">
341 <primary sortas="b-automount">automount</primary>
342 </indexterm>
343 </listitem>
344 </varlistentry>
345
346 </variablelist>
347
348 </sect2>
[7ef22cf]349
350</sect1>
Note: See TracBrowser for help on using the repository browser.