Managing Network File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014

Default Autofs Behavior With Name Services

At boot time, autofs is invoked by the service svc:/system/filesystem/autofs and autofs checks for the master auto_master map.

Autofs uses the name service ordering specified in the config/automount property of the svc:/system/name-service/switch service. If the config/automount property is not defined, then the config/default property is used. If NIS is selected and autofs cannot find a map that autofs can use, but does find a map name that contains one or more underscores, the underscores are changed to dots to allow traditional NIS file names to work. Then autofs checks the map again, as shown in the following figure.

Figure 2-6  How Autofs Uses the Name Service

image:This graphic shows the order in which different information sources are checked to look for autofs information.

The screen activity for this session would resemble the following example.

$ grep /home /etc/auto_master
/home           auto_home

$ ypmatch brent auto_home
Can't match key brent in map auto_home.  Reason: no such map in
server's domain.

$ ypmatch brent auto.home

If “files” is selected as the name service, all maps are assumed to be local files in the /etc directory. Autofs interprets a map name that begins with a slash (/) as local regardless of which name service autofs uses.