source: general/sysutils/autofs.xml@ 6d85d2c1

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6d85d2c1 was 47be189b, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Update to autofs-5.0.6

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

  • Property mode set to 100644
File size: 11.7 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;
[47be189b]6 <!ENTITY autofs-patch-dir "http://ftp.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.7">
7 <!ENTITY autofs-download-http "http://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.xz">
8 <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.xz">
9 <!ENTITY autofs-md5sum "cb05edaa43116c1837776e503bd86a66">
10 <!ENTITY autofs-size "240 KB">
11 <!ENTITY autofs-buildsize "8.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
[32d0e29]32 <para>The <application>Autofs</application> package contains userspace
[d3ad3271]33 tools that work with the kernel to mount and un-mount removable file
[d4bf650a]34 systems. The primary use is to mount external network file systems like
[8ff67045]35 NFS (see <xref linkend="nfs-utils"/>) or Samba (see <xref linkend="samba3"/>)
[d4bf650a]36 on demand.</para>
[fd7e0ed6]37
[d4bf650a]38 <para>It may also be useful for allowing users to mount floppies, cdroms and
[d3ad3271]39 other removable storage devices without requiring the system
[8ff67045]40 administrator to mount the devices.</para>
[47be189b]41
42 &lfs71_built;
[d3ad3271]43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>Download (HTTP): <ulink url="&autofs-download-http;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download (FTP): <ulink url="&autofs-download-ftp;"/></para>
51 </listitem>
52 <listitem>
53 <para>Download MD5 sum: &autofs-md5sum;</para>
54 </listitem>
55 <listitem>
56 <para>Download size: &autofs-size;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated disk space required: &autofs-buildsize;</para>
60 </listitem>
61 <listitem>
62 <para>Estimated build time: &autofs-time;</para>
63 </listitem>
64 </itemizedlist>
65
66 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[32d0e29]67
[65bea2a5]68 <para>Recommended Patches: There are frequent patches issued for
[47be189b]69 <application>autofs</application>. One method you can use to get the
[65bea2a5]70 current patches requires first installing the <xref linkend="wget"/>
71 package. After ensuring the <command>wget</command> command is installed
72 in a directory identified in the <envar>PATH</envar> variable, start in
73 the same directory as the main tar file and issue the following
74 commands:</para>
[fd7e0ed6]75
[d4bf650a]76<screen><userinput>wget &autofs-patch-dir;/patch_order-&autofs-version; &amp;&amp;
[32d0e29]77sed 's;autofs;&autofs-patch-dir;/autofs;' \
[5e7ffd30]78 patch_order-&autofs-version; | grep -v ^# &gt; wget-list &amp;&amp;
[d4bf650a]79wget -i wget-list</userinput></screen>
[fd7e0ed6]80
[81066706]81 <bridgehead renderas="sect3">Autofs Dependencies</bridgehead>
[50d1a60]82
[47be189b]83 <bridgehead renderas="sect4">Required</bridgehead>
84 <para role="required">
85 <xref linkend="openldap"/>,
86 <xref linkend="cyrus-sasl"/>, and
87 <xref linkend="mitkrb"/></para>
[50d1a60]88
[3597eb6]89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/autofs"/></para>
91
[d3ad3271]92 </sect2>
93
94 <sect2 role="kernel" id="autofs-kernel">
95 <title>Kernel Configuration</title>
96
97 <indexterm zone="autofs autofs-kernel">
98 <primary sortas="d-Automounter">Automounter</primary>
99 </indexterm>
100
101 <para>Verify that kernel support has been compiled in or built as
102 modules in the following areas:</para>
103
[6a0e6e4]104<screen><literal>File systems &rArr;
[e19ad480]105 Kernel automounter version 4 support Y or M
[6a0e6e4]106 Network File Systems &rArr;
[5e7ffd30]107 NFS client support Y or M (optional)
108 CIFS support Y or M (optional)</literal></screen>
[d612b9f]109
[d3ad3271]110 <para>Recompile and install the new kernel, if necessary.</para>
[7ef22cf]111
[d3ad3271]112 </sect2>
[0290a023]113
[d3ad3271]114 <sect2 role="installation">
[d612b9f]115
[d3ad3271]116 <title>Installation of Autofs</title>
117
[32d0e29]118 <para>Install <application>Autofs</application> by running the following
[d3ad3271]119 commands:</para>
120
[410e228b]121<screen><userinput>for f in `cat ../patch_order-&autofs-version;`; do
[d4bf650a]122 patch -Np1 -i ../$f
123done &amp;&amp;
[47be189b]124
[6b104248]125./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
[d3ad3271]126make</userinput></screen>
127
[d4bf650a]128 <para>This package does not come with a test suite.</para>
129
[d3ad3271]130 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
131
[47be189b]132<screen role="root"><userinput>make install</userinput></screen>
[d3ad3271]133
134 </sect2>
135
136 <sect2 role="commands">
137 <title>Command Explanations</title>
138
[d4bf650a]139 <para><command>for f in `cat ../patch_order-&autofs-version;`; do
[410e228b]140 patch -Np1 -i ../$f; done</command>: This command applies all the
[65bea2a5]141 patches downloaded earlier in the correct order.</para>
[765a494]142
[410e228b]143 <para><command>ln -sf ../init.d/autofs
144 /etc/rc.d/rcsysinit.d/S52autofs</command>: This command sets the
[d4bf650a]145 link to properly start autofs upon boot.</para>
[d260aaf4]146
[d3ad3271]147 </sect2>
[d260aaf4]148
[d3ad3271]149 <sect2 role="configuration">
150 <title>Configuring Autofs</title>
[7ef22cf]151
[d3ad3271]152 <sect3 id="autofs-config">
153 <title>Config Files</title>
[7ef22cf]154
[d3ad3271]155 <para><filename>/etc/sysconfig/autofs.conf</filename>,
156 <filename>/etc/auto.master</filename>,
157 <filename>/etc/auto.misc</filename>, and
158 <filename>/etc/auto.net</filename></para>
[7ef22cf]159
[d3ad3271]160 <indexterm zone="autofs autofs-config" >
161 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
162 </indexterm>
[7ef22cf]163
[d3ad3271]164 <indexterm zone="autofs autofs-config">
165 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
166 </indexterm>
[7ef22cf]167
[d3ad3271]168 <indexterm zone="autofs autofs-config">
169 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
170 </indexterm>
[7ef22cf]171
[d3ad3271]172 <indexterm zone="autofs autofs-config">
173 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
174 </indexterm>
[7ef22cf]175
[d3ad3271]176 </sect3>
[7ef22cf]177
[d3ad3271]178 <sect3>
179 <title>Configuration Information</title>
[7ef22cf]180
[d3ad3271]181 <para>The installation process creates <filename>auto.master</filename>,
[d4bf650a]182 <filename>auto.misc</filename>, <filename>auto.smb</filename>, and
[32d0e29]183 <filename>auto.net</filename>. Replace the
184 <filename>auto.master</filename> file with the following commands:</para>
[d3ad3271]185
186<screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
187cat &gt; /etc/auto.master &lt;&lt; "EOF"
188<literal># Begin /etc/auto.master
[7ef22cf]189
[9415459]190/media/auto /etc/auto.misc --ghost
191#/home /etc/auto.home
[7ef22cf]192
[d3ad3271]193# End /etc/auto.master</literal>
194EOF</userinput></screen>
195
[9415459]196 <para>This file creates a new media directory, <filename>/media/auto</filename>
197 that will overlay any existing directory of the same name. In this example,
198 the file, <filename>/etc/auto.misc</filename>, has a line:</para>
199
200<screen>cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom</screen>
201
202 <para>that will mount a cdrom as <filename>/media/auto/cd</filename> if
203 that directory is accessed. The <option>--ghost</option> option tells
[32d0e29]204 the automounter to create <quote>ghost</quote> versions (i.e. empty
205 directories) of all the mount points listed in the configuration file
206 regardless whether any of the file systems are actually mounted or not.
207 This is very convenient and highly recommended, because it will show you
208 the available auto-mountable file systems as existing directories, even
209 when their file systems aren't currently mounted. Without the
210 <option>--ghost</option> option, you'll have to remember the names of the
211 directories. As soon as you try to access one of them, the directory will
212 be created and the file system will be mounted. When the file system gets
213 unmounted again, the directory is destroyed too, unless the
214 <option>--ghost</option> option was given.</para>
[9415459]215
[d3ad3271]216 <note>
[9415459]217 <para>An alternative method would be to specify another automount
[32d0e29]218 location such as <filename
219 class='directory'>/var/lib/auto/cdrom</filename> and create a
220 symbolic link from <filename class='directory'>/media/cdrom</filename>
221 to the automount location.</para>
[d612b9f]222 </note>
[d3ad3271]223
[9415459]224 <para>The <filename>auto.misc</filename> file must be configured to your
[d3ad3271]225 working hardware. The loaded configuration file should load your cdrom
226 if <filename>/dev/cdrom</filename> is active or it can be edited to
[9415459]227 match your device setup. Examples for floppies are available in the file
[d3ad3271]228 and easily activated. Documentation for this file is available using the
229 <command>man 5 autofs</command> command.</para>
230
[9415459]231 <para>In the second line, if enabled, a user's home directory would be
232 mounted via NFS upon login. The <filename>/etc/home.auto</filename>
233 would need to exist and have an entry similar to:</para>
234
235<screen>joe example.org:/export/home/joe</screen>
236
237 <para>where the directory <filename>/export/home/joe</filename> is
238 exported via NFS from the system example.org. NFS shares
239 are covered on the next page.</para>
240
[32d0e29]241 <para>This package could also be used to mount SMB shares, however that
242 feature is not configured in these instructions. For additional
243 configuration information, see the man pages for auto.master(5). There
[9415459]244 are also web resources such as this <ulink
[8a994438]245 url='http://en.gentoo-wiki.com/wiki/Autofs'>AUTOFS
[32d0e29]246 HOWTO</ulink> available.</para>
[9415459]247
[d3ad3271]248 </sect3>
[32d0e29]249
[d3ad3271]250 <sect3 id="autofs-init">
251 <title>Boot Script</title>
252
[47be189b]253 <para> <application>autofs</application> installs it's own boot script,
254 but it has no capability for logging or visual conformance with other
255 BLFS scripts.</para>
[d3ad3271]256
[47be189b]257 <para>Install the <filename>/etc/init.d/autofs</filename> mount script
258 included with the <xref linkend="bootscripts"/> package.</para>
[d3ad3271]259
260 <indexterm zone="autofs autofs-init">
261 <primary sortas="f-autofs-init">autofs</primary>
262 </indexterm>
263
264<screen role="root"><userinput>make install-autofs</userinput></screen>
265
266 <para>The time-out variable is set in
267 <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
268 a default of 60 seconds of inactivity before unmounting the device. A
[e0d33ef]269 much shorter time may be necessary to protect buffer writing to a floppy
[d3ad3271]270 if users tend to remove the media prior to the timeout setting.</para>
271
272 </sect3>
[32d0e29]273
[d3ad3271]274 </sect2>
275
276 <sect2 role="content">
277 <title>Contents</title>
278
279 <segmentedlist>
280 <segtitle>Installed Program</segtitle>
281 <segtitle>Installed Libraries</segtitle>
282 <segtitle>Installed Directories</segtitle>
283
284 <seglistitem>
285 <seg>automount</seg>
[47be189b]286 <seg>lookup_dir.so, lookup_file.so, lookup_hosts.so, lookup_ldap.so,
287 lookup_multi.so, lookup_nisplus.so, lookup_program.so, lookup_sss.so,
288 lookup_userhome.so, lookup_yp.so, mount_afs.so, mount_autofs.so,
289 mount_bind.so, mount_changer.so, mount_ext2.so, mount_generic.so,
290 mount_nfs.so, parse_sun.so</seg>
291 <seg>/lib/autofs</seg>
[d3ad3271]292 </seglistitem>
293 </segmentedlist>
294
295 <variablelist>
296 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
297 <?dbfo list-presentation="list"?>
298 <?dbhtml list-presentation="table"?>
299
300 <varlistentry id="automount">
301 <term><command>automount</command></term>
302 <listitem>
[e0d33ef]303 <para>is the daemon that performs the mounting when a request is
[d3ad3271]304 made for the device.</para>
305 <indexterm zone="autofs automount">
306 <primary sortas="b-automount">automount</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 </variablelist>
312
313 </sect2>
[7ef22cf]314
315</sect1>
Note: See TracBrowser for help on using the repository browser.