HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
a
automount(1M) automount(1M)
+auto_master include entry. To be effective, the
-null entries must be inserted before the included
map entry.
Executable Maps
Local maps that have the execute bit set in their file permissions will be executed by the automounter and
provided with a key to be looked up as an argument. The executable map is expected to return the content
of an automounter map entry on its standard output or no output if the entry cannot be determined. A
direct map cannot be made executable.
Configuration and the auto_master Map
When initiated without arguments,
automount consults the master map for a list of
autofs mount
points and their maps. It mounts any
autofs
mounts that are not already mounted, and unmounts
autofs mounts that have been removed from the master map or direct map.
The master map is assumed to be called
auto_master and its location is determined by the name service
switch policy. Normally the master map is located initially as a local file,
/etc/auto_master
.
Browsing
Browsing is only available with Enhanced AutoFS. Browsing of indirect maps allows all of the potential
mount points to be visible for that map regardless of whether they are mounted or not. The
-nobrowse
option can be added to any indirect autofs map to disable browsing. For example:
/net -hosts -nosuid,soft,nobrowse
In this case, any host names would only be visible in /net after they are mounted. The
-browse option
enables browsing of
autofs file systems. Browsing is the default for all indirect maps without any brows-
ing option specified, although it is suggested that the -hosts entry contain the
-nobrowse option.
Note that, although a listing of the
autofs directory associated with an indirect map shows all potential
mountable entries, the attributes associated with those entries are temporary until the actual filesystem
attributes can be retrieved once the filesystem has been mounted.
Network Information Service (NIS) and Yellow Pages (YP)
The Network Information Service (NIS) was formerly known as Sun Yellow Pages (YP). The functionality
of the two remains the same.
RETURN VALUE — Autofs
automount returns:
0 Success
1 Failure
3 Map not found
AUTHOR — Autofs
automount was developed by Sun Microsystems, Inc.
FILES — Autofs
/etc/auto_master
Master automount map.
/etc/nsswitch.conf Name service switch configuration file.
/usr/lib/netsvc/fs/autofs/automount
Autofs automount command.
/usr/lib/netsvc/fs/enh_autofs/automount
Autofs automount command only available with Enhanced AutoFS
/usr/sbin/automount Previous automounter automount command.
SEE ALSO — Autofs
automountd(1M), cfsadmin(1M), mount(1M).
HP-UX 11i Version 1: September 2005 − 5 − Hewlett-Packard Company Section 1M−−93