NFS Services Administrator's Guide

Configuring and Administering AutoFS
Automounting All Exported Directories from Any Host Using the -hosts Map
Chapter 3126
Automounting All Exported Directories from
Any Host Using the -hosts Map
To automount all exported directories using the -hosts map, follow
these steps:
1. If you are using local files for AutoFS maps, use an editor to add the
following entry to the /etc/auto_master master map file:
/net -host -nosuid,soft,nobrowse
NOTE The nobrowse option in the local default master map file for a newly
installed system is set for the /net map.
If you are using NIS to manage AutoFS maps, add the previous entry
to the master map file on the NIS master server. Rebuild the map
and push it out to slave servers. For more information, see NIS
Administrator’s Guide (5991-7656). If you are using LDAP, add the
entry to the LDAP directory.
2. On each host that uses the map you modified, enter the following
command to force AutoFS to the modified map:
/usr/sbin/automount
Notes on the -hosts Map
The -hosts map is a built-in AutoFS map; you need not create it. The
-hosts map causes AutoFS to mount exported directories from any NFS
server found in the hosts database, whenever a user or a process
requests access to one of the exported directories from that server.
CAUTION A user may inadvertently cause an NFS mount over X.25 or SLIP, which
is unsupported, or through a slow router or gateway, because the -hosts
map allows NFS access to any reachable remote system. Mounts over
slow links can cause excessive retransmissions, and degrade the
performance for all users.