NFS Services Administrator's Guide

Configuring and Administering AutoFS
Enabling AutoFS
Chapter 3 109
Enabling AutoFS
To enable AutoFS, follow these steps:
1. In the /etc/rc.config.d/nfsconf file, set the value of AUTOFS
variables to 1, as follows:
AUTOFS=1
2. If you use a local file as the master map, ensure that the
AUTO_MASTER variable in /etc/rc.config.d/nfsconf is set to the
name of the master map. (The default master map name is
/etc/auto_master).
AUTO_MASTER=”/etc/auto_master”
If you use an NIS AutoFS master map, ensure that -f
$AUTO_MASTER is not present in the AUTOMOUNT_OPTIONS variable.
3. To run the AutoFS startup script, enter the following command at
the HP-UX prompt:
/sbin/init.d/autofs start
When AutoFS starts up, and if the AUTOMOUNT_OPTIONS variable
specifies a master map file with the -f
filename
option, AutoFS
searches for a file by that name on the local host. It can also use the
Name Service Switch to determine which name services are in use, and
determines the master maps that are available from those name
services.
If the AUTOMOUNT_OPTIONS variable does not specify the -f
filename
option, AutoFS consults the Name Service Switch configuration, to
determine where to search for the AutoFS master map.
For more information on configuring the name service switch, see
nsswitch.conf (4) and automount (1M).