autofs not mounting file systems with error 'couldn't open /etc/nsswitch.conf' in RHEL
Issue
autofsis not mounting configured directories, and we see the error:
Aug 6 20:22:58 example automount[6518]: nsswitch_parse:173: couldn't open /etc/nsswitch.conf
Aug 6 20:22:58 example automount[6518]: lookup_nss_read_master: can't to read name service switch config.
- NIS or LDAP
automountdirectory won't mount
Environment
- Red Hat Enterprise Linux (RHEL) 5 or 6
autofs- Mappings provided by NSS services (LDAP, NIS, etc)
- SELinux in enforcing mode
- Context on
/etc/nsswitch.confhas been modified from the default
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
