Why the order of automount entry defined in /etc/nsswitch.conf is ignored when "+auto_master" is in /etc/auto.master

Solution Unverified - Updated -

Issue

  • automount entry in /etc/nsswitch.conf has "files ldap".
  • /etc/auto.master has the following data.
/misc   /etc/auto.misc
/net    -hosts
+auto.master
/exports    /etc/auto.direct
  • ldap also provide another map entry for /exports
  • We expected that the map entry for /exports from 'files' source was used by automount daemon, upon the order in /etc/nsswitch.conf.
  • But, the map from 'ldap' was used.
  • When I deleted +auto.master, the map from 'files' was used as expected.
  • Why the order defined in /etc/nsswitch.conf was ignored?
  • Why the map from 'files' was used, when "+auto.master" is deleted?

Environment

Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content