FreeBSD 5.1 Automount - amd.map help?

William M. Grim wgrim at siue.edu
Wed Dec 10 19:42:39 PST 2003


Hey again!  Thanks for the previous help trying to update from 5.1 to 5.2.

Now, I'm trying to setup amd and have setup and amd.conf to go along with
it (I have attached amd.conf).  In rc.conf, I have also cleared the
amd_flags so that it loads amd.conf.

However, I was curious how the /etc/amd.map (also attached) that comes with the
default install works?  The man pages are rather skimpy on information.  I
only got the amd.conf file working by following the example,
/usr/src/contrib/amd/scripts/amd.conf-sample.

Thanks again for any help.  Also, does anyone know any good site that
describes how the amd.map works so that I can create my own?  I'd like to
automount home directories and other exports off of remote servers (not using
fstab).
-- 
William Michael Grim
Student, Southern Illinois University at Edwardsville
Unix Network Administrator, SIUE, Computer Science dept.
Phone: (217) 341-6552
Email: wgrim at siue.edu


-------------- next part --------------
[ global ]
normalize_hostnames =		yes
restart_mounts =		yes
unmount_on_exit =		yes
auto_dir =			/a
cache_duration =		300
#local_domain =			dnsalias.net
print_version =			no
log_file =			/var/log/amd
dismount_interval =		120
#nis_domain =			grimnet.dnsalias.net
log_options =			fatal,error,user,warn,info,map,stats,all
#debug_options =			all
plock =				no
selectors_in_defaults =		yes
show_statfs_entries =		yes

# LDAP (Lightweight Directory Access Protocol) options
#ldap_base =			"ou=Marketing, o=AMD Ltd, c=US"
#ldap_hostports =		ldap.your.domain:389
#ldap_cache_seconds =		0
#ldap_cache_maxmem =		131072

hesiod_base =			automount

# these 5 options can be overridden by each map individually
browsable_dirs =		yes
map_options =			cache:=all
map_type =			file
mount_type =			nfs
search_path =			/etc/amdmaps

# alternate RPC program number to register with the port mapper
portmap_program =		300019-300029
fully_qualified_hosts =		yes
nfs_vers =			3
nfs_proto =			tcp

##############################################################################
# DEFINE AN AMD MOUNT POINT
[ /home ]
# map name must be defined, all else are optional
map_name =			/etc/amd.home
map_options =			cache:=all
# if map type is not defined, will search all map types (default)
#map_type =			file|hesiod|ndbm|nis|nisplus|passwd|union|ldap
#search_path =			/etc/local:/etc/amdmaps:/misc/yp
# an amd or autofs mount point
mount_type =			nfs
browsable_dirs =		yes
# an optional tag to be used with amd -T tag. untagged entries are always
# used.  Tagged ones get used only if specified with "amd -T"
#tag =				test

##############################################################################
# DEFINE ANOTHER AMD MOUNT POINT
[ /src ]
#map_name = /usr/local/lib/amdmaps/amu.src
# regular amd (nfs) mount point (default)
# don't try the "autofs" type.  It is not implemented yet.
#mount_type = nfs

##############################################################################
-------------- next part --------------
# $FreeBSD: src/etc/amd.map,v 1.9 2002/05/15 22:24:29 obrien Exp $
#
/defaults       type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key}
*               opts:=rw,grpid,resvport,vers=3,proto=udp,nosuid,nodev


More information about the freebsd-hackers mailing list