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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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" |
| |||
| 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 |
| |||
| 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. |
| ||||
| 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 |