Unix Technical Forum

autofs direct maps ?

This is a discussion on autofs direct maps ? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Autofs version 4.1.4 explicitly says # We can't do empty or direct host maps, so don't bother trying. in ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 06:58 PM
ErgoSum
 
Posts: n/a
Default autofs direct maps ?


Autofs version 4.1.4 explicitly says

# We can't do empty or direct host maps, so don't bother trying.

in file /etc/rc.d/rc.autofs.

No way to do it?
Alternate versions of autofs....



--
"First things first -- but not necessarily in that order"
-- The Doctor, "Doctor Who"

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 06:59 PM
Henrik Carlqvist
 
Posts: n/a
Default Re: autofs direct maps ?

ErgoSum <ergo@sum.yp> wrote:

> Autofs version 4.1.4 explicitly says
>
> # We can't do empty or direct host maps, so don't bother trying.
>
> in file /etc/rc.d/rc.autofs.
>
> No way to do it?
> Alternate versions of autofs....


An alternate version would be AutfsNG: http://waychison.com/autofsng/
Unfortunately development seem to have halted since SUN cancelled the
project.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc8(at)uthyres.com Examples of addresses which go to spammers:
root@variousus.net root@localhost

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 07:00 PM
ErgoSum
 
Posts: n/a
Default Re: autofs direct maps ?

On Sun, 17 Sep 2006 20:19:34 +0200, Henrik Carlqvist wrote:

> ErgoSum <ergo@sum.yp> wrote:
>
>> Autofs version 4.1.4 explicitly says
>>
>> # We can't do empty or direct host maps, so don't bother trying.
>>
>> in file /etc/rc.d/rc.autofs.
>>
>> No way to do it?
>> Alternate versions of autofs....

>
> An alternate version would be AutfsNG: http://waychison.com/autofsng/
> Unfortunately development seem to have halted since SUN cancelled the
> project.
>
> regards Henrik


Thanks! I'll give a look.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 07:02 PM
scarabus
 
Posts: n/a
Default Re: autofs direct maps ?


I had the same problem and found the solution. I wrote it up 'in m
blog' (http://blogs.sun.com/davetong/entry/...mout_in_centos
but basically you just need to edit /etc/rc.d/init.d/autofs and mak
this change:

getrawmounts | (
while read dir map options
do
# These checks screen out duplicates and skip over directories
# where the map is '-'.
# We can't do empty or direct host maps, so don't bother trying.

# Strip trailing slashes from the dir line if it exists to aid
# in checking for duplicate maps
dir=`echo "$dir" | sed -e "s/\/*$//"`

if [ ! -z "$map" -a "$map" = "-hosts" ] ; then
# START EDIT
IF [ -X '/ETC/AUTO.NET' ]; THEN
MAP='/ETC/AUTO.NET'
ELSE
CONTINUE
F
# END EDIT
fi
if [ $DISABLE_DIRECT -eq 1 \
-a x`echo $dir | grep -E "^/-"` != 'x' ]
then
continue
fi

Be sure to check that /etc/nsswitch.conf contains an entry automount
files nis and you may also need to edit /etc/auto.master to uncommen
the line /net /etc/auto.net

Hope this helps
Dav

--
scarabus
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com