Bug 143126 (IT_57523) - autofs reads all auto.master maps
Summary: autofs reads all auto.master maps
Alias: IT_57523
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: autofs   
(Show other bugs)
Version: 3.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeff Moyer
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2004-12-16 18:47 UTC by David Lehman
Modified: 2007-11-30 22:07 UTC (History)
3 users (show)

Fixed In Version: RHBA-2005-178
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-19 22:05:45 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2005:177 normal SHIPPED_LIVE Normal: autofs bug fix update 2005-05-19 04:00:00 UTC
Red Hat Product Errata RHBA-2005:178 normal SHIPPED_LIVE autofs bug fix update 2005-06-09 04:00:00 UTC

Description David Lehman 2004-12-16 18:47:11 UTC
Description of problem:
The automounter init scripts are supposed to honour settings in
/etc/nsswitch.conf for determining the master map. So, if nsswitch.conf contains
'files nis', then it should check in /etc/auto.master for any maps & if none are
found, then check in NIS for any maps.

What the current scripts do, however, is to take the UNION of all the maps in
/etc/auto.master & NIS. So, when trying to use /etc/auto.master to override
what's in NIS, you end up with multiple definitions for the same mount point.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Set up nsswitch.conf to look in nis then files for automount maps
2. configure an auto.master in both NIS and /etc/auto.master
3. start autofs
Actual results:
the master map will contain all entries from both master maps

Expected results:
master map is whichever autofs found first (not both)

Additional info:
This has been fixed in the Fedora Core 3 version of autofs RPM. We'd like to get
this into the next RHEL3 errata.

Comment 1 Jeff Moyer 2004-12-16 18:50:14 UTC
I am quite clear on how the current automounter operates with regards to this
issue.  However, last I tried to change the behaviour to match that of the Sun
automounter, I had users reporting regressions, since they had come to rely on
the current behaviour.  I will work to see if the +map syntax in auto.master
would be an acceptable alternative to those complaining of regressions.


Comment 4 Dennis Gregorovic 2005-05-19 22:05:46 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.