Enhanced AutoFS Administrator's Guide

Installing Enhanced AutoFS
Enabling Enhanced AutoFS
Chapter 2 13
Enabling Enhanced AutoFS
To enable Enhanced AutoFS, perform the following steps:
1. In the /etc/rc.config.d/nfsconf file, make sure the values for the
NFS_CLIENT, AUTOMOUNT, and AUTOFS variables are set to 1; see the
following:
NFS_CLIENT=1
AUTOMOUNT=1
AUTOFS=1
2. If you want to use a local file as your AutoFS master map, make sure
the value for the AUTO_MASTER variable in
/etc/rc.config.d/nfsconf is set to the name of your AutoFS
master map. The default master map name is /etc/auto_master.
AUTO_MASTER=”/etc/auto_master”
If you want to use an NIS AutoFS master map, remove -f
$AUTO_MASTER from the AUTOMOUNT_OPTIONS variable.
3. To start AutoFS, issue the following command:
/sbin/init.d/nfs.client start
When Enhanced AutoFS starts up, if your AUTOMOUNT_OPTIONS variable
specifies a master map file with the -f
filename
option, Enhanced
AutoFS searches for a file with that name on the local host. Enhanced
AutoFS can also use the Name Service Switch to determine which name
services you are using and find the master maps that are available from
those name services.
If your AUTOMOUNT_OPTIONS variable does not specify the -f
filename
option, Enhanced AutoFS checks the Name Service Switch configuration
to determine where to search for your AutoFS master map.
For more information, see the following man pages: nsswitch.conf(4) or
automount(1M).