Enhanced AutoFS Administrator's Guide
v
Contents
About This Document
1. An Introduction to AutoFS
Overview of AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
How AutoFS Works. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
New Features of AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Comparing AutoFS with Automounter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2. Installing Enhanced AutoFS
Installation and Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Installing Enhanced AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Verifying Enhanced AutoFS Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Enabling Enhanced AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Disabling Enhanced AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Restarting Enhanced AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Updating from Automounter to Enhanced AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3. Configuring and Administering AutoFS
Using the New Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
On-Demand Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Browsability for Indirect Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
NFS Loopback Mount. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Command-Line Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Automount Command-Line Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Automountd Command-Line Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Automounting Home Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Example of Automounting a User’s Home Directory . . . . . . . . . . . . . . . . . . . . . . . . . 27
Automounting All Exported Directories Using the -hosts Map. . . . . . . . . . . . . . . . . . . 29
Deciding Between Direct and Indirect NFS Automounts . . . . . . . . . . . . . . . . . . . . . . . 32
How AutoFS Sets Up Direct and Indirect Mounts . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Mounting a Remote Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Using a Direct AutoFS Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Sample File Entries for NFS Direct Automounts . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Using an Indirect AutoFS Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Sample File Entries for NFS Indirect Automounts. . . . . . . . . . . . . . . . . . . . . . . . . 41