Red Hat Bugzilla – Bug 10421
autofs fails on NIS based auto.home (auto.master local file)
Last modified: 2008-05-01 11:37:55 EDT
autofs in 6.2 fails to work with an ordninary NIS based auto.home map.
It also fails with a local map served from NIS, auto.ic.
This works with 6.1. It also works if I downgradethe rpm for autofs
to the same version in 6.1 on a 6.2 install
The auto.master file is:
Auto.home map can be seen via ypcat on the 6.2 machine:
but automount doesn't work:
[peterc@gila peterc]$ ls ~pcollins
ls: /home/pcollins: No such file or directory
the autofs start script (incorrectly) never looks for nis maps if
see bug 5796 from redhat-6.1 (not fixed).
# Check for local maps to be loaded
if [ -f /etc/auto.master ]
check for NIS maps
it's easy to fix: unconditionally look for the NIS maps.
See bug 10471 for a patch to this problem and a better description.
Bug 5796 is not exactly what is going on here, as auto.master is
a local file not an NIS map. But when processing the local auto.master
autofs forgets to consider that auto.master may refer to MIS maps
for auto.home, etc.
Looks like the map type is missing in this case. Here's the change I'm using:
[root@localhost init.d]# diff autofs autofs.redhat.org
< echo "$DAEMON $mountoptions $dir yp `basename $map` $options
> echo "$DAEMON $mountoptions $dir `basename $map` $options $localoptions"
[root@localhost init.d]# diff -e autofs.redhat.org autofs
echo "$DAEMON $mountoptions $dir yp `basename $map` $options
This *should* be cleared up in 3.1.4-6, which cleans up the init script a bit,
in the next Raw Hide (ftp://ftp.redhat.com/pub/rawhide/i386/RedHat/RPMS/).
Please let me know whether or not it solves the problems you're experiencing.
I must second this problem. I upgraded to 6.2 today and my autofs mounts of NIS
supplied maps immediately stopped working. My /etc/auto.master entry was:
which, under 6.1, correctly fetched the auto_home (or, if you prefer, auto.home)
map from NIS and mounted it the appropriate directory.
However, after upgrading the 6.2, this feature stopped working and an error was
generated to /var/log/messages everytime an attempt was made to access an
automounted directory under /users.
The error complains about not being able to load one of autofs shared libraries:
Apr 6 14:11:54 gkar automount: cannot open lookup module auto_home
(/usr/lib/autofs//lookup_auto_home.so: cannot open shared object file: No such
file or directory)
So, it looks like autofs is trying to incorrectly invoke the lookup_yp.so
Clay, please update to the Raw Hide version of the package (which, until Raw
Hide gets updated, can now be found in http://people.redhat.com/nalin/test/)
and let me know if it fixes the problem.
I've heard numerous success reports about the fix, so I'm closing this bug.