Enhanced AutoFS Administrator's Guide
Configuring and Administering AutoFS
Mounting a Remote Directory
Chapter 3 35
Mounting a Remote Directory
This section provides detailed information on how to mount a remote
directory using both the direct and indirect AutoFS maps.
Using a Direct AutoFS Map
To mount a remote directory using a direct AutoFS map, perform the
following steps:
1. If you are using local files for your AutoFS maps, use an editor to
open or create a direct map in the /etc directory. The direct map is
commonly called /etc/auto_direct. Add a line to the direct map
with the following syntax:
local_directory
[
mount_options
]
server
:
remote_directory
For CIFS file system mount entries in AutoFS direct map files, set
the mount option for the fstype file system type to cifs. The remote
server must be a CIFS server, and the remote directory must be a
CIFS share.
If you are using NIS to manage your AutoFS maps, add the line to
the direct map on the NIS master server. See the “Configuring and
Administering NIS” chapter of NFS Services Administrator’s Guide.
2. If you are using local files for your AutoFS maps, use an editor to
open or create the AutoFS master map in the /etc directory. You
need to name the master map as /etc/auto_master. If you are
using NIS, open the master map on the NIS master server.
If the direct map you just modified is not listed in the AutoFS master
map, add the following line to the master map:
/-
direct_map_name
[
mount_options
]
3. If you are using NIS to manage your AutoFS maps, issue the
following commands on the NIS master server to rebuild the maps,
and push them to the slave servers:
cd /var/yp
/usr/ccs/bin/make auto_master auto_direct
4. On each host that will use the map you have modified, issue the
following command to force AutoFS to read the modified map: