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

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 0acce93 was faa68e4a, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Remove url references to ftp at kernel.org

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

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