Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 11:31:03 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        freebsd-rc@freebsd.org
Cc:        nectar@freebsd.org
Subject:   rc.d/nisdomain problem
Message-ID:  <20040319193102.GB30414@Odin.AC.HMC.Edu>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
The nisdomain script doesn't properly handle the case where
nsswitch.conf exists, but does not have a hosts: entry in it.  I'm not
sure exactly how I got into this situation, but I ended up with a
machine where my nsswitch.conf looked like:

passwd: files nis
group:  files nis

That caused host.conf to look like:

# Auto-generated from nsswitch.conf, do not edit

That caused 4.x binaries to fail in hard to diagnose ways.  (The program
said the host was unknown, but every test program I ran found it just
fine.)  I finaly figured it out when I ran truss on the binary and
realized it was dying after reading /etc/host.conf.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAW0p1XY6L6fI4GtQRAoBwAKCjqR3roItuzZifjEH/Md5Q1W5JdgCgrUlk
xLnWGTx3tQn4E2RkrvtmCMk=
=4uRR
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040319193102.GB30414>