Enhanced AutoFS Administrator's Guide
Configuring and Administering AutoFS
Mounting a Remote Directory
Chapter 3 39
For CIFS file system mount entries in AutoFS indirect map files, you
must 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 an
indirect 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 indirect map you modified is not listed in the AutoFS master
map, add the following line to the master map:
local_parent_directory indirect_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
indirect_mapname
4. If you modified the AutoFS master map, issue the following
command on each host that will use the map. This forces AutoFS to
read the modified master map:
/usr/sbin/automount
The
local_subdirectory
specified in the indirect map is the deepest
subdirectory in the local directory path name. For example, if you were
mounting a remote directory on /nfs/apps/draw, the
local_subdirectory
specified in the indirect map is draw.
The
local_parent_directory
specified in the master map is all but the
deepest subdirectory in the local directory path name. For example, if
you were mounting a remote directory on /nfs/apps/draw, the
local_parent_directory
specified in the master map is /nfs/apps.
The
local_parent_directory
and
local_subdirectory
should not
exist; AutoFS creates them when it mounts the remote directory. If the
local_parent_directory
or
local_subdirectory
contains files or
directories, they are hidden beneath the remote directory when it is
mounted.