source: general/sysutils/autofs.xml@ ad1831a

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 ad1831a was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

  • Property mode set to 100644
File size: 13.6 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 " ">
[7aa91c69]9 <!ENTITY autofs-md5sum "6bd1ea8a9e5dc3a7dc95119e3bbaf52c">
10 <!ENTITY autofs-size "324 KB">
11 <!ENTITY autofs-buildsize "6.7 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 <date>$Date$</date>
20 </sect1info>
21
[6d15c62]22 <title>autofs-&autofs-version;</title>
[d3ad3271]23
24 <indexterm zone="autofs">
25 <primary sortas="a-Autofs">Autofs</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to Autofs</title>
30
[d17b13d]31 <para>
32 <application>Autofs</application> controls the operation of the automount
33 daemons. The automount daemons automatically mount filesystems when they
34 are accessed and unmount them after a period of inactivity. This is done
35 based on a set of pre-configured maps.
36 </para>
[47be189b]37
[66d551c]38 &lfs101_checked;
[d3ad3271]39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[b1532549]43 <para>
44 Download (HTTP): <ulink url="&autofs-download-http;"/>
45 </para>
[d3ad3271]46 </listitem>
47 <listitem>
[b1532549]48 <para>
49 Download (FTP): <ulink url="&autofs-download-ftp;"/>
50 </para>
[d3ad3271]51 </listitem>
52 <listitem>
[b1532549]53 <para>
54 Download MD5 sum: &autofs-md5sum;
55 </para>
[d3ad3271]56 </listitem>
57 <listitem>
[b1532549]58 <para>
59 Download size: &autofs-size;
60 </para>
[d3ad3271]61 </listitem>
62 <listitem>
[b1532549]63 <para>
64 Estimated disk space required: &autofs-buildsize;
65 </para>
[d3ad3271]66 </listitem>
67 <listitem>
[b1532549]68 <para>
69 Estimated build time: &autofs-time;
70 </para>
[d3ad3271]71 </listitem>
72 </itemizedlist>
[fd7e0ed6]73
[81066706]74 <bridgehead renderas="sect3">Autofs Dependencies</bridgehead>
[50d1a60]75
[ad09e9f5]76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
[b08a9ed]78 <xref linkend="libtirpc"/> and
79 <xref linkend="rpcsvc-proto"/>
[ad09e9f5]80 </para>
81
[d17b13d]82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional">
84 <xref linkend="nfs-utils"/>,
[7aa91c69]85 <xref linkend="libnsl"/>,
[d17b13d]86 <xref linkend="libxml2"/>,
87 <xref linkend="mitkrb"/>,
88 <xref linkend="openldap"/> (client only), and
89 <xref linkend="cyrus-sasl"/>
90 </para>
[50d1a60]91
[3597eb6]92 <para condition="html" role="usernotes">User Notes:
93 <ulink url="&blfs-wiki;/autofs"/></para>
94
[d3ad3271]95 </sect2>
96
97 <sect2 role="kernel" id="autofs-kernel">
98 <title>Kernel Configuration</title>
99
100 <indexterm zone="autofs autofs-kernel">
101 <primary sortas="d-Automounter">Automounter</primary>
102 </indexterm>
103
[d17b13d]104 <para>
105 Verify that automounter kernel support has been enabled:
106 </para>
107
108<screen><literal>File systems ---&gt;
[ee4e4dea]109 &lt;*/M&gt; Kernel automounter support (supports v3, v4, and v5) [CONFIG_AUTOFS_FS]</literal></screen>
[d17b13d]110
111 <para>
112 Optionally, enable the following options in the kernel configuration:
113 </para>
[d3ad3271]114
[d17b13d]115<screen><literal>File systems ---&gt;
[38155d1]116 [*] Network File Systems ---&gt; [CONFIG_NETWORK_FILESYSTEMS]
117 &lt;*/M&gt; NFS client support [CONFIG_NFS_FS]
[f39cf0d0]118 &lt;*/M&gt; SMB3 and CIFS support (advanced network filesystem) [CONFIG_CIFS]</literal></screen>
[d612b9f]119
[b1532549]120 <para>
121 Recompile and install the new kernel, if necessary.
122 </para>
[7ef22cf]123
[d3ad3271]124 </sect2>
[0290a023]125
[d3ad3271]126 <sect2 role="installation">
[d612b9f]127
[d3ad3271]128 <title>Installation of Autofs</title>
129
[b1532549]130 <para>
131 Install <application>Autofs</application> by running the following
132 commands:
133 </para>
[d17b13d]134
[d5497a2e]135<screen revision="sysv"><userinput>./configure --prefix=/ \
[a65876c]136 --with-libtirpc \
[d5497a2e]137 --without-openldap \
138 --mandir=/usr/share/man &amp;&amp;
139make</userinput></screen>
140
141<screen revision="systemd"><userinput>./configure --prefix=/ \
[a65876c]142 --with-libtirpc \
[ecf6154]143 --with-systemd \
[73b53eb]144 --without-openldap \
145 --mandir=/usr/share/man &amp;&amp;
[a65876c]146make</userinput></screen>
[d3ad3271]147
[b1532549]148 <para>
149 This package does not come with a test suite.
150 </para>
[d4bf650a]151
[b1532549]152 <para>
153 Now, as the <systemitem class="username">root</systemitem> user:
154 </para>
[d3ad3271]155
[47be189b]156<screen role="root"><userinput>make install</userinput></screen>
[d3ad3271]157
[51797c8]158<!-- As of version 5.1.5, the configuration files are not installed anymore -->
159 <caution>
160 <para>
161 If <application>autofs</application> is already installed on your
162 system, be sure to backup your configuration files. They'll be
163 overwritten by the following command.
164 </para>
165 </caution>
166
167 <para>
168 Install the default configuration files, still as the
169 <systemitem class="username">root</systemitem> user:
170 </para>
171
172<screen role="root"><userinput>make install_samples</userinput></screen>
173
[d3ad3271]174 </sect2>
[d17b13d]175
[d3ad3271]176 <sect2 role="commands">
177 <title>Command Explanations</title>
178
[a65876c]179 <para>
180 <parameter>--with-libtirpc</parameter>: This switch forces the package to
181 use libtirpc for RPC functionality instead of relying on implementation
182 from Glibc, which was removed in LFS 8.1.
183 </para>
184
[d5497a2e]185 <para revision="systemd">
186 <parameter>--with-systemd</parameter>: This switch enables installation
187 of the bundled systemd units.
188 </para>
189
[d17b13d]190 <para>
[f1d7196]191 <parameter>--without-openldap</parameter>: This switch disables openldap
192 if found. If openldap is desired, omit this switch. Note that openldap
193 support in autofs requires <xref linkend="mitkrb"/>.
[d17b13d]194 </para>
[d260aaf4]195
[d3ad3271]196 </sect2>
[d17b13d]197
[d3ad3271]198 <sect2 role="configuration">
199 <title>Configuring Autofs</title>
[7ef22cf]200
[d3ad3271]201 <sect3 id="autofs-config">
202 <title>Config Files</title>
[7ef22cf]203
[b1532549]204 <para>
205 <filename>/etc/sysconfig/autofs.conf</filename>,
206 <filename>/etc/auto.master</filename>,
207 <filename>/etc/auto.misc</filename>, and
208 <filename>/etc/auto.net</filename>
209 </para>
[7ef22cf]210
[d3ad3271]211 <indexterm zone="autofs autofs-config" >
212 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
213 </indexterm>
[7ef22cf]214
[d3ad3271]215 <indexterm zone="autofs autofs-config">
216 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
217 </indexterm>
[7ef22cf]218
[d3ad3271]219 <indexterm zone="autofs autofs-config">
220 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
221 </indexterm>
[7ef22cf]222
[d3ad3271]223 <indexterm zone="autofs autofs-config">
224 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
225 </indexterm>
[7ef22cf]226
[d3ad3271]227 </sect3>
[7ef22cf]228
[d3ad3271]229 <sect3>
230 <title>Configuration Information</title>
[7ef22cf]231
[b1532549]232 <para>
233 The installation process creates <filename>auto.master</filename>,
234 <filename>auto.misc</filename>, <filename>auto.smb</filename>, and
235 <filename>auto.net</filename>. Replace the
236 <filename>auto.master</filename> file with the following commands
237 as the <systemitem class="username">root</systemitem> user:
238 </para>
[d3ad3271]239
240<screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
241cat &gt; /etc/auto.master &lt;&lt; "EOF"
242<literal># Begin /etc/auto.master
[7ef22cf]243
[9415459]244/media/auto /etc/auto.misc --ghost
245#/home /etc/auto.home
[7ef22cf]246
[d3ad3271]247# End /etc/auto.master</literal>
248EOF</userinput></screen>
249
[b1532549]250 <para>
251 This file creates a new media directory,
252 <filename>/media/auto</filename> that will overlay any existing
253 directory of the same name. In this example, the file,
254 <filename>/etc/auto.misc</filename>, has a line:
255 </para>
[9415459]256
257<screen>cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom</screen>
258
[b1532549]259 <para>
260 that will mount a cdrom as <filename>/media/auto/cd</filename> if
261 that directory is accessed. The <option>--ghost</option> option tells
262 the automounter to create <quote>ghost</quote> versions (i.e. empty
263 directories) of all the mount points listed in the configuration file
264 regardless whether any of the file systems are actually mounted or not.
265 This is very convenient and highly recommended, because it will show
266 you the available auto-mountable file systems as existing directories,
267 even when their file systems aren't currently mounted. Without the
268 <option>--ghost</option> option, you'll have to remember the names of
269 the directories. As soon as you try to access one of them, the
270 directory will be created and the file system will be mounted. When
271 the file system gets unmounted again, the directory is destroyed too,
272 unless the <option>--ghost</option> option was given.
273 </para>
[9415459]274
[d3ad3271]275 <note>
[b1532549]276 <para>
277 An alternative method would be to specify another automount
278 location such as <filename
279 class='directory'>/var/lib/auto/cdrom</filename> and create a
280 symbolic link from <filename
281 class='directory'>/media/cdrom</filename> to the automount location.
282 </para>
[d612b9f]283 </note>
[d3ad3271]284
[b1532549]285 <para>
286 The <filename>auto.misc</filename> file must be configured to your
287 working hardware. The loaded configuration file should load your cdrom
288 if <filename>/dev/cdrom</filename> is active or it can be edited to
289 match your device setup. Examples for floppies are available in the
290 file and easily activated. Documentation for this file is available
291 using the <command>man 5 autofs</command> command.
292 </para>
[d3ad3271]293
[b1532549]294 <para>
295 In the second line, if enabled, a user's home directory would be
296 mounted via NFS upon login. The <filename>/etc/home.auto</filename>
297 would need to exist and have an entry similar to:
298 </para>
[9415459]299
300<screen>joe example.org:/export/home/joe</screen>
301
[b1532549]302 <para>
303 where the directory <filename>/export/home/joe</filename> is
304 exported via NFS from the system example.org. NFS shares
305 are covered on the next page.
306 </para>
[9415459]307
[b1532549]308 <para>
309 This package could also be used to mount SMB shares, however that
310 feature is not configured in these instructions. For additional
311 configuration information, see the man pages for auto.master(5). There
312 are also web resources such as this <ulink
313 url='http://wiki.gentoo.org/wiki/AutoFS'>AUTOFS
314 HOWTO</ulink> available.
315 </para>
[9415459]316
[d3ad3271]317 </sect3>
[32d0e29]318
[d3ad3271]319 <sect3 id="autofs-init">
[d5497a2e]320 <title><phrase revision="sysv">Boot Script</phrase>
321 <phrase revision="systemd">Systemd Unit</phrase></title>
322
[b1532549]323 <para revision="sysv">
324 <application>autofs</application> installs its own
325 boot script, but it has no capability for logging or visual conformance
326 with other BLFS scripts.
327 </para>
[d3ad3271]328
[b1532549]329 <para revision="sysv">
330 Install the <filename>/etc/init.d/autofs</filename>
331 mount script included with the <xref linkend="bootscripts"/>
332 package.
333 </para>
[d3ad3271]334
[d5497a2e]335 <para revision="systemd">
336 To start <application>Autofs</application> at boot, enable the
337 previously installed systemd unit by running the following command as
338 the <systemitem class="username">root</systemitem> user:
339 </para>
[d3ad3271]340
341 <indexterm zone="autofs autofs-init">
342 <primary sortas="f-autofs-init">autofs</primary>
343 </indexterm>
344
[d5497a2e]345<screen role="root" revision="sysv"><userinput>make install-autofs</userinput></screen>
346
347<screen role="root" revision="systemd"><userinput>systemctl enable autofs</userinput></screen>
[d3ad3271]348
[b1532549]349 <para revision="sysv">
350 The time-out variable is set in
351 <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
352 a default of 60 seconds of inactivity before unmounting the device. A
353 much shorter time may be necessary to protect buffer writing to a floppy
354 if users tend to remove the media prior to the timeout setting.
355 </para>
[d3ad3271]356
[d5497a2e]357 <note revision="systemd">
358 <para>
359 You can also specify <envar>OPTIONS</envar> variable in the
360 <filename>/etc/sysconfig/autofs</filename> file with any additional
361 parameters that you might want to pass to the automount daemon.
362 </para>
363 </note>
364
[d3ad3271]365 </sect3>
[32d0e29]366
[d3ad3271]367 </sect2>
368
369 <sect2 role="content">
370 <title>Contents</title>
371
372 <segmentedlist>
373 <segtitle>Installed Program</segtitle>
374 <segtitle>Installed Libraries</segtitle>
375 <segtitle>Installed Directories</segtitle>
376
377 <seglistitem>
378 <seg>automount</seg>
[9fe905c]379 <seg>
380 lookup_dir.so, lookup_file.so, lookup_files.so, lookup_hosts.so,
381 lookup_ldap.so, lookup_multi.so, lookup_nis.so, lookup_nisplus.so,
382 lookup_program.so, lookup_userhome.so, lookup_yp.so, mount_afs.so,
383 mount_autofs.so, mount_bind.so, mount_changer.so, mount_ext2.so,
384 mount_ext3.so, mount_ext4.so, mount_generic.so, mount_nfs.so,
385 mount_nfs4.so, parse_amd.so, and parse_sun.so
386 </seg>
[47be189b]387 <seg>/lib/autofs</seg>
[d3ad3271]388 </seglistitem>
389 </segmentedlist>
390
391 <variablelist>
392 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
393 <?dbfo list-presentation="list"?>
394 <?dbhtml list-presentation="table"?>
395
396 <varlistentry id="automount">
397 <term><command>automount</command></term>
398 <listitem>
[b1532549]399 <para>
400 is the daemon that performs the mounting when a request is
[4c24eb0a]401 made for the device
[b1532549]402 </para>
[d3ad3271]403 <indexterm zone="autofs automount">
404 <primary sortas="b-automount">automount</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
409 </variablelist>
410
411 </sect2>
[7ef22cf]412
413</sect1>
Note: See TracBrowser for help on using the repository browser.