NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering the NFS Automounter
Chapter 2 89
For more information, type man 1M automount or man 4
nsswitch.conf.
To Turn Off an Automounter Map with the -null Map
1. Add a line with the following syntax to the automounter master map:
local_directory -null
2. If the automounter is running, restart it to force it to read its maps.
See “To Restart the Automounter” on page 92.
The -null option “turns off” the map that is mounted on
local_directory. For example, if the NIS auto.master map mounts
the auto.home map on /home, and you include the following line in your
local /etc/auto_master file,
/home -null
the NIS auto.home map will not be used on your system.
The -null option is useful for turning off NIS or NIS+ automounter
maps that do not apply to your host.
You can also replace NIS maps with local maps, as in the following
example from /etc/auto_master:
/home /etc/auto_ourhome
Because the automounter reads the local /etc/auto_master file before
the NIS auto.master map, this entry causes the automounter to look for
mount information in the local file /etc/auto_ourhome instead of the
auto.home NIS map.
To use a local automounter master map, make sure the AUTO_OPTIONS
variable in /etc/rc.config.d/nfsconf includes the string
-f $AUTO_MASTER, and make sure the AUTO_MASTER variable is set to the
name of your local automounter master map file.
For more information, type man 1M automount.
To Enable the NFS Automounter
1. In the /etc/rc.config.d/nfsconf file, make sure the NFS_CLIENT
and AUTOMOUNT variables are set to 1, as follows:
NFS_CLIENT=1
AUTOMOUNT=1