Comment 8 for bug 573919

Revision history for this message
onkara (daya) wrote : Re: autofs doesn't work with lucid

It seems autofs is completely broken for me not only does the service not start automatically it doesn't mount NFS shares on manual start.

Here is what I have tried

$ sudo service autofs restart
autofs start/running, process 4590

in syslog I see

May 14 12:44:17 sky-ubuntu automount[4590]: syntax error in nsswitch config near [ syntax error ]

here is my nsswitch.conf not sure what is wrong here

$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis

If I try to automount manually this is what I see

$ sudo automount -v -d -F -C -f -t 60
Starting automounter version 5.0.4, master map /etc/auto.master
using kernel protocol version 5.01
lookup_nss_read_master: reading master file /etc/auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry +auto.master
syntax error in nsswitch config near [ syntax error ]

lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup(file): failed to read included master map auto.master
no mounts in table

Any ideas on how I can fix this ... ??