Enhanced AutoFS Administrator's Guide
Configuring and Administering AutoFS
Automounting All Exported Directories Using the -hosts Map
Chapter 3 29
Automounting All Exported Directories Using
the -hosts Map
To automount all exported directories from any host using the -hosts
map, perform the following steps:
1. If you are using local files for your AutoFS maps, use an editor to add
the following line to the AutoFS master map file, /etc/auto_master:
/net -host -nosuid,soft,nobrowse
If you are using NIS to manage your AutoFS maps, add the line to
the master map file on the NIS master server. See the “Configuring
and Administering NIS” chapter of NFS Services Administrator’s
Guide.
Next, issue the following commands to rebuild the map, and push it
out to slave servers:
cd /var/yp
/usr/ccs/bin/make auto_master
WARNING HP recommends you to modify your /net map entry with the
nobrowse option when you upgrade from the current AutoFS
on HP-UX 11i to Enhanced AutoFS. By default, the local
default master map file for a newly installed system has the
nobrowse option set for the /net map entry.
2. On each host that will use the map you have modified, issue the
following command to force AutoFS to read the modified map:
/usr/sbin/automount
You must enable AutoFS before any directory is automounted.
The -hosts map is a built-in AutoFS map; you do not have to create it.
The -hosts map causes AutoFS to mount exported directories from any
NFS server found in the hosts database whenever a user or process
requests access to one of the exported directories from that server.