rc.d/nisdomain problem

Brooks Davis brooks at one-eyed-alien.net
Fri Mar 19 11:31:06 PST 2004


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20040319/3fff3e74/attachment.bin


More information about the freebsd-rc mailing list