Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2012 16:09:35 +0100 (MET)
From:      Christian Corti <corticn@informatik.uni-stuttgart.de>
To:        freebsd-stable@freebsd.org
Subject:   Questions about amd automounter
Message-ID:  <alpine.SUN.2.02.1211061545240.9499@azu.informatik.uni-stuttgart.de>

next in thread | raw e-mail | index | archive | help
Hi,

I am running FreeBSD 9.0-RELEASE-p4 on an AMD64 box. I am playing with the 
amd automounter and am looking for a solution of the following problem:
I would like to have a /home map similar to autofs that has both local and 
NIS entries. With autofs (Solaris, Linux etc.) I can say in /etc/auto.home:

testuser	server:/export/home/testuser
+auto_home

How can I accomplish somethink similar with amd? Note that I can't put the 
testuser in the NIS map.

Next, while testing different configurations I created a map with SUN 
syntax (described in the am-utils manual), but apparently the FreeBSD 
version of amd doesn't support it (there's clearly a lack of 
documentation and examples of _real-world_ scenarios):

Here's the section of amd.conf:
[ /xx ]
sun_map_syntax = yes
map_type = file
map_name = /etc/amd.xx

But that doesn't work:

# /usr/sbin/amd -p -F /etc/amd.conf
conf: unknown regular key "sun_map_syntax" for section "/xx"
AMDCONF: syntax error on line 30 (section /xx)

Am I doing something wrong?
This is from the am-utils doc:
"To enable Sun-style maps in Amd, set "sun_map_syntax = yes" in your 
amd.conf file.  When this flag is set in [global], all maps read by Amd 
are assumed to be Sun style maps.  You can set this on a per map basis, 
thus mixing Sun-style and Amd-style maps.  For more information about 
amd.conf please see the Amd documentation."

Christian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.SUN.2.02.1211061545240.9499>