All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Vlasenko <vda.linux@googlemail.com>
To: Ian Kent <raven@themaw.net>
Cc: autofs@linux.kernel.org
Subject: "syntax error in nsswitch config near [ syntax error ]" ?
Date: Wed, 26 Sep 2007 11:12:35 +0100	[thread overview]
Message-ID: <200709261112.35225.vda.linux@googlemail.com> (raw)

Hi Ian,

I tried to start automount with command line like this one:

automount -f -s -v --timeout 15 master.file

and it says:


Starting automounter version 5.0.0_beta1, master map master.file
syntax error in nsswitch config near [ syntax error ]

lookup_nss_read_master: can't to read name service switch config.
master_read_master: can't read master map master.file


Well, my mistake was that I should use fully-qualified filename ($PWD/master.file),
but error message is misleading. It says that my /etc/nsswitch.conf
is bad (well, it doesn't even mention "/etc/nsswitch.conf", I need to
infer that!).

But my /etc/nsswitch.conf has no syntax errors:

passwd:         compat
group:          compat
shadow:         compat
hosts:          files dns [!UNAVAIL=return]
networks:       files
ethers:         files
protocols:      files
rpc:            files
services:       files

it just doesn't have automounter maps. This is not a crime.

Message is also complains about /etc/nsswitch.conf FIRST,
and THEN complains "can't read master map master.file",
but actual order of these events is different - if master
file is found, /etc/nsswitch.conf is not consulted.

Can this be improved?
--
vda

             reply	other threads:[~2007-09-26 10:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-26 10:12 Denys Vlasenko [this message]
2007-09-26 15:17 ` "syntax error in nsswitch config near [ syntax error ]" ? Ian Kent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200709261112.35225.vda.linux@googlemail.com \
    --to=vda.linux@googlemail.com \
    --cc=autofs@linux.kernel.org \
    --cc=raven@themaw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.