DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Configuring the NFS automounter

Creating master automount maps

Each line in the master map, by convention called /etc/auto.master, has the syntax:

mount_point    map_name    [ mount_options ]

A line whose first character is ``#'' is treated as a comment, and everything that follows until the end of the line is ignored. A backslash (\) at the end of the line permits splitting long lines into shorter ones. For details on this syntax see ``About automount maps''.

The following sample master map is based on ``An example of indirect mounting using automount'', and ``An example of direct mounting using automount''. The direct and indirect map names are taken from the direct and indirect map examples in ``Creating indirect automount maps'' and ``Creating direct automount maps'', which are also based on the same figures:

   /-             /etc/auto.usr    -ro
   /doc_tools     /etc/auto.doc    -ro
The first entry is a pointer to a direct map located at /etc/auto.usr; the remote filesystems listed in this direct map will be mounted read-only unless this option is overridden in the direct map. The mount point is listed in the direct map.

The second entry is a pointer to an indirect map located at /etc/auto.doc; the remote filesystems listed in this map will be mounted under /doc_tools/basename, where basename is a ``key'' directory specified in the indirect map. All filesystems listed in /etc/auto.doc will be mounted read-only unless this option is overridden in the indirect map. automount creates /doc_tools if it does not exist. If it exists and is not empty, the existing contents are hidden by the automounted filesystem.

See also:


Next topic: Creating indirect and direct automount maps
Previous topic: Planning an automount configuration

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005