Hi Eric,
what I found out after struggling for two days with this problem, was
that to do this you need to have both a local and yp auto.master. Not
at all well documented and the yp: syntax doesn't work at all :(
Bruce Ferrell
Manager, Information Systems
The MicroDisplay Corp.
autofs-3.1.4-4.i386.rpm
Hello,
Maybe it's not the right list for my request, in this case
sorry for
inconvenience and please informe me about the good address...
I found a problem in autofs for a NIS map case on Linux Red
Hat 6.2,
autofs-3.1.4-4.i386.rpm.
Like documented (man 5 auto.master) I would like to use a
local auto.master
file and a NIS map auto.home:
> cat /etc/auto.master
/home yp:auto.home --timeout 60
But, this case is not treated in the /etc/rc.d/init.d/autofs
file.
If you use a local /etc/auto.master file, you must use a
local map. And if you
use a NIS auto.master file, you must use a NIS map too.
Is it a known pb?
If not, I propose a correction in this init script that could
be (look like an
old version):
---------------------------------------------------------------------------
...
if [ -f /etc/auto.master ]
then
cat /etc/auto.master | sed -e '/^#/d' -e '/^$/d'| (
while read dir map options
do
if [ ! -z "$dir" -a ! -z "$map" \
-a x`echo "$map" | cut -c1` != 'x-' ]
then
(add in line 83)
---------> if echo $map | grep -- ':' ; then
---------> maptype=`echo $map | cut -d ':' -f 1`
---------> map=`echo $map | cut -d ':' -f 2-`
---------> fi
#convert -t to --timeout and save elsewhere
map=`echo "/etc/$map" | sed -e 's:^/etc//:/:'`
...
(And replace line 98 : )
...
else
echo "$DAEMON $mountoptions $dir `basename $map`
$options $localoptions"
...
(by : )
...
else
echo "$DAEMON $mountoptions $dir $maptype `basename
$map` $options $localoptions"
... ^^^^^^^^
---------------------------------------------------------------------------
Is it possible to do something in this way for a next version
?
Thanks,
Best regards,
Eric Ragusi
-----------------------------------------------------------------------------
INRIA Rhone-Alpes - 655 Avenue de l'Europe - 38330
Montbonnot Saint-Martin
France
System Administrator
Email: [EMAIL PROTECTED] - Tel: 33 4 76 61 52 96
-----------------------------------------------------------------------------