conf/140009: configuration issue NIS in /etc/nsswitch.conf

Volker Jahns volker at
Tue Oct 27 08:30:02 UTC 2009

>Number:         140009
>Category:       conf
>Synopsis:       configuration issue NIS in /etc/nsswitch.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 27 08:30:01 UTC 2009
>Originator:     Volker Jahns
>Release:        7.2 release
Thalreit UNIX
FreeBSD pegasus.mydomain 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root at  i386
actual behaviour:
database source entry 'compat' for Database passwd in '/etc/nsswitch.conf' will result in failure of name lookup for user entries:
user1 at pegasus ~ > id user2
id: user2: no such user

Changing to database source entry 'files nis' will succeed in name lookup
user1 at pegasus ~ > id user2
uid=ppp(user2) gid=nnn(group2) groups=nnn(group2),5(operator),0(wheel),80(www)
- user1 is local user, user2 distributed via NIS.
- FreeBSD 6.2-stable is distributed with identical /etc/nsswitch.conf and works with NIS out of the box.

desired behaviour:
correct documentation and/or nsdispatch to be compatible with older installations.

further information:
jahns at pegasus ~ > diff /etc/nsswitch.conf nsswitch.conf 
< #
< # nsswitch.conf(5) - name service switch configuration file
< # $FreeBSD: src/etc/nsswitch.conf,v 2009/04/15 03:14:26 kensmith Exp $
< #
< passwd: files nis
> passwd: compat

Edit nsswitch.conf on FreeBSD 7.2 and change entry of database passwd from
passwd: compat
passwd: files nis


More information about the freebsd-bugs mailing list