Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Enhanced AutoFS Administrator's Guide: HP-UX 11i v1 > Chapter 3 Configuring and Administering AutoFS

Including an AutoFS Map in Another AutoFS Map

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

To include the contents of an AutoFS map in another AutoFS map, add a plus sign (+) before the map name; see the following example:

# /etc/auto_home file
# local mount point mount options remote server:directory

basil -nosuid         basil:/export/home/basil
+auto_home

Assume that the /etc/auto_home map is listed in the master map with the following line:

/home           /etc/auto_home

This example causes the following:

  • If a user whose home directory is in /home/basil logs on, AutoFS mounts the /export/home/basil directory from the basil host.

  • If a user whose home directory is in /home/sage, /home/thyme, or any subdirectory of /home other than basil logs on, AutoFS checks the auto_home NIS map for information on mounting the user’s home directory.

The plus sign (+) indicates that AutoFS must look into a different map for the information it needs to mount the directory. If the map name following the plus sign begins with a slash, it is a local file for AutoFS. If the map name contains no slashes, AutoFS uses the Name Service Switch to determine whether it is a file or an NIS map. For more information, see the "Configuring the Name Service Switch" chapter of NFS Services Administrator’s Guide.

NOTE: You can include an AutoFS map inside a local file but not inside an NIS map.

For more information, see the following man pages: automount(1M) or nsswitch.conf(4).

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2004 Hewlett-Packard Development Company, L.P.