source: general/sysutils/autofs.xml@ 60233054

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 gimp3 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 60233054 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
RevLine 
[7ef22cff]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" [
[7ef22cff]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 " ">
[360e30c0]9 <!ENTITY autofs-md5sum "57a6791e596b8b8ee2c4c50420881180">
10 <!ENTITY autofs-size "296 KB">
11 <!ENTITY autofs-buildsize "7.7 MB">
[5e7ffd30]12 <!ENTITY autofs-time "0.1 SBU">
[7ef22cff]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;
[360e30c0]40 &gcc7_checked;
[d3ad3271]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>
[fd7e0ed6]63
[81066706]64 <bridgehead renderas="sect3">Autofs Dependencies</bridgehead>
[50d1a60]65
[d17b13d]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>
[50d1a60]75
[3597eb6]76 <para condition="html" role="usernotes">User Notes:
77 <ulink url="&blfs-wiki;/autofs"/></para>
78
[d3ad3271]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
[d17b13d]88 <para>
89 Verify that automounter kernel support has been enabled:
90 </para>
91
92<screen><literal>File systems ---&gt;
[38155d1]93 &lt;*/M&gt; Kernel automounter version 4 support (also supports v3) [CONFIG_AUTOFS4_FS]</literal></screen>
[d17b13d]94
95 <para>
96 Optionally, enable the following options in the kernel configuration:
97 </para>
[d3ad3271]98
[d17b13d]99<screen><literal>File systems ---&gt;
[38155d1]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>
[d612b9f]103
[d3ad3271]104 <para>Recompile and install the new kernel, if necessary.</para>
[7ef22cff]105
[d3ad3271]106 </sect2>
[0290a023]107
[d3ad3271]108 <sect2 role="installation">
[d612b9f]109
[d3ad3271]110 <title>Installation of Autofs</title>
111
[32d0e29]112 <para>Install <application>Autofs</application> by running the following
[d3ad3271]113 commands:</para>
[d17b13d]114
[d5497a2e]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 \
[73b53eb]122 --without-openldap \
123 --mandir=/usr/share/man &amp;&amp;
[d3ad3271]124make</userinput></screen>
125
[d4bf650a]126 <para>This package does not come with a test suite.</para>
127
[d3ad3271]128 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
129
[47be189b]130<screen role="root"><userinput>make install</userinput></screen>
[d3ad3271]131
132 </sect2>
[d17b13d]133
[d3ad3271]134 <sect2 role="commands">
135 <title>Command Explanations</title>
136
[d5497a2e]137 <para revision="systemd">
138 <parameter>--with-systemd</parameter>: This switch enables installation
139 of the bundled systemd units.
140 </para>
141
[d17b13d]142 <para>
[f1d7196]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"/>.
[d17b13d]146 </para>
[d260aaf4]147
[73b53eb]148 <para>
[f1d7196]149 <option>--with-libtirpc</option>: This switch enables libtirpc support if
150 available.
[73b53eb]151 </para>
152
[d3ad3271]153 </sect2>
[d17b13d]154
[d3ad3271]155 <sect2 role="configuration">
156 <title>Configuring Autofs</title>
[7ef22cff]157
[d3ad3271]158 <sect3 id="autofs-config">
159 <title>Config Files</title>
[7ef22cff]160
[d3ad3271]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>
[7ef22cff]165
[d3ad3271]166 <indexterm zone="autofs autofs-config" >
167 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
168 </indexterm>
[7ef22cff]169
[d3ad3271]170 <indexterm zone="autofs autofs-config">
171 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
172 </indexterm>
[7ef22cff]173
[d3ad3271]174 <indexterm zone="autofs autofs-config">
175 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
176 </indexterm>
[7ef22cff]177
[d3ad3271]178 <indexterm zone="autofs autofs-config">
179 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
180 </indexterm>
[7ef22cff]181
[d3ad3271]182 </sect3>
[7ef22cff]183
[d3ad3271]184 <sect3>
185 <title>Configuration Information</title>
[7ef22cff]186
[d3ad3271]187 <para>The installation process creates <filename>auto.master</filename>,
[d4bf650a]188 <filename>auto.misc</filename>, <filename>auto.smb</filename>, and
[32d0e29]189 <filename>auto.net</filename>. Replace the
[69243a9]190 <filename>auto.master</filename> file with the following commands
191 as the <systemitem class="username">root</systemitem> user:</para>
[d3ad3271]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
[7ef22cff]196
[9415459]197/media/auto /etc/auto.misc --ghost
198#/home /etc/auto.home
[7ef22cff]199
[d3ad3271]200# End /etc/auto.master</literal>
201EOF</userinput></screen>
202
[9415459]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
[32d0e29]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>
[9415459]222
[d3ad3271]223 <note>
[9415459]224 <para>An alternative method would be to specify another automount
[32d0e29]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>
[d612b9f]229 </note>
[d3ad3271]230
[9415459]231 <para>The <filename>auto.misc</filename> file must be configured to your
[d3ad3271]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
[9415459]234 match your device setup. Examples for floppies are available in the file
[d3ad3271]235 and easily activated. Documentation for this file is available using the
236 <command>man 5 autofs</command> command.</para>
237
[9415459]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
[32d0e29]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
[9415459]251 are also web resources such as this <ulink
[f22f1ef3]252 url='http://wiki.gentoo.org/wiki/Autofs'>AUTOFS
[32d0e29]253 HOWTO</ulink> available.</para>
[9415459]254
[d3ad3271]255 </sect3>
[32d0e29]256
[d3ad3271]257 <sect3 id="autofs-init">
[d5497a2e]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>
[d3ad3271]264
[d5497a2e]265 <para revision="sysv">Install the <filename>/etc/init.d/autofs</filename>
266 mount script included with the <xref linkend="bootscripts"/>
267 package.</para>
[d3ad3271]268
[d5497a2e]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>
[d3ad3271]274
275 <indexterm zone="autofs autofs-init">
276 <primary sortas="f-autofs-init">autofs</primary>
277 </indexterm>
278
[d5497a2e]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>
[d3ad3271]282
[d5497a2e]283 <para revision="sysv">The time-out variable is set in
[d3ad3271]284 <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
285 a default of 60 seconds of inactivity before unmounting the device. A
[e0d33ef]286 much shorter time may be necessary to protect buffer writing to a floppy
[d3ad3271]287 if users tend to remove the media prior to the timeout setting.</para>
288
[d5497a2e]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
[d3ad3271]297 </sect3>
[32d0e29]298
[d3ad3271]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>
[9fe905c]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>
[47be189b]319 <seg>/lib/autofs</seg>
[d3ad3271]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>
[e0d33ef]331 <para>is the daemon that performs the mounting when a request is
[d3ad3271]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>
[7ef22cff]342
343</sect1>
Note: See TracBrowser for help on using the repository browser.