NFS Services Administrator's Guide (B.11.31.02) January 2008
Figure 3-8 Automounted Directories from the -hosts Map—One Server
/net
/sage
/opt
In the following example, the server thyme exports the directory /exports/proj1, and a user
enters the following command:
more /net/thyme/exports/proj1/readme
The subdirectory /thyme is created under /net, and /exports/proj1 is mounted under
/thyme.
Figure 3-9 shows the automounted directory structure after the user enters the second command.
Figure 3-9 Automounted Directories from the -hosts Map—Two Servers
/net
/sage
/opt
/thyme
/exports
/proj1
Turning Off an AutoFS Map Using the -null Map
To turn off a map using the -null map, follow these steps:
1. Add a line with the following syntax in the AutoFS master map:
local_directory -null
2. If AutoFS is running, enter the following command on each client that uses the map, to force
AutoFS to reread its maps:
/usr/sbin/automount
This enables AutoFS to ignore the map entry that does not apply to your host.
Notes on the -null Map
The -null map is used to ignore mapping entries that do not apply to your host, but which
would otherwise be inherited from the NIS or LDAP maps.
The -null option causes AutoFS to ignore AutoFS map entries that affect the specified directory.
For example, an NIS (or LDAP) auto_master map is configured such that AutoFS mounts the
auto_home map on /home, as follows:
/home auto_home
You can include the following line in the /etc/auto_master file, before the +auto_master
entry, so that the NIS auto_home map is not used for the system:
/home -null
+auto_master
Special Maps 75