NetBSD Problem Report #7449
Received: (qmail 10265 invoked from network); 22 Apr 1999 23:33:18 -0000
Message-Id: <199904222333.QAA00523@sulaco.nas.nasa.gov>
Date: Thu, 22 Apr 1999 16:33:17 -0700 (PDT)
From: Jason R Thorpe <thorpej@sulaco.nas.nasa.gov>
Reply-To: thorpej@sulaco.nas.nasa.gov
To: gnats-bugs@gnats.netbsd.org
Subject: nsswitch is broken, or I'm seriously confused
X-Send-Pr-Version: 3.95
>Number: 7449
>Category: lib
>Synopsis: nsswitch is broken, or I'm seriously confused
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lukem
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 22 16:35:03 +0000 1999
>Closed-Date: Wed May 05 12:26:29 +0000 1999
>Last-Modified: Wed May 05 12:27:05 +0000 1999
>Originator:
>Release: Simon's NetBSD 1.4_BETA snapshot for pmax
>Organization:
Numerical Aerospace Simulation Facility - NASA Ames
>Environment:
System: NetBSD sulaco 1.4_BETA NetBSD 1.4_BETA (GENERIC) #21: Wed Apr 21 12:05:53 EST 1999 root@mona:/usr/src/sys/arch/pmax/compile/GENERIC pmax
>Description:
Ether nsswitch is broken, or I am seriously confused. Wanting
to get away from old compat-style passwd files, I changed my
/etc/nsswitch.conf to read:
passwd: files nis
From my reading of the manual page, this would cause it to
check files first, and if not found, consult nis.
However, user "thorpej" no longer existed, according to
finger(1). It worked once I changed it back to "compat".
`ypmatch thorpej passwd.byname' worked fine, even when
finger(1) didn't.
>How-To-Repeat:
See above.
>Fix:
No idea. Help! *whimper*
>Release-Note:
>Audit-Trail:
From: Simon Burge <simonb@NetBSD.ORG>
To: thorpej@nas.nasa.gov
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: lib/7449: nsswitch is broken, or I'm seriously confused
Date: Fri, 23 Apr 1999 09:58:17 +1000
Jason R Thorpe wrote:
> Ether nsswitch is broken, or I am seriously confused. Wanting
> to get away from old compat-style passwd files, I changed my
> /etc/nsswitch.conf to read:
>
> passwd: files nis
>
> From my reading of the manual page, this would cause it to
> check files first, and if not found, consult nis.
>
> However, user "thorpej" no longer existed, according to
> finger(1). It worked once I changed it back to "compat".
> `ypmatch thorpej passwd.byname' worked fine, even when
> finger(1) didn't.
I had a quick poke around here on the a with "passwd files dns"
running off an Ultrix hesiod server. Seems that getpwent() is
broken, but getpwnam() works. Does "finger -m thorepj" work?
Simon.
From: Jason Thorpe <thorpej@nas.nasa.gov>
To: Simon Burge <simonb@NetBSD.ORG>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: lib/7449: nsswitch is broken, or I'm seriously confused
Date: Thu, 22 Apr 1999 17:07:50 -0700
On Fri, 23 Apr 1999 09:58:17 +1000
Simon Burge <simonb@NetBSD.ORG> wrote:
> I had a quick poke around here on the a with "passwd files dns"
> running off an Ultrix hesiod server. Seems that getpwent() is
> broken, but getpwnam() works. Does "finger -m thorepj" work?
sulaco# finger -m thorpej
Login: thorpej Name: Jason R Thorpe
Directory: /users/thorpej Shell: /bin/ksh
Office Phone: +1 415 604 0935 Home Phone: +1 408 866 1912
On since Thu Apr 22 16:21 (PDT) on ttyp0 from 129.99.50.29
New mail received Thu Apr 22 16:35 1999 (PDT)
Unread since Thu Apr 22 16:35 1999 (PDT)
No Plan.
sulaco# finger thorpej
finger: thorpej: no such user
sulaco#
-- Jason R. Thorpe <thorpej@nas.nasa.gov>
From: Simon Burge <simonb@NetBSD.ORG>
To: Jason Thorpe <thorpej@nas.nasa.gov>
Cc: Simon Burge <simonb@NetBSD.ORG>, gnats-bugs@gnats.netbsd.org
Subject: Re: lib/7449: nsswitch is broken, or I'm seriously confused
Date: Fri, 23 Apr 1999 10:21:30 +1000
Jason Thorpe wrote:
> On Fri, 23 Apr 1999 09:58:17 +1000
> Simon Burge <simonb@NetBSD.ORG> wrote:
>
> > I had a quick poke around here on the a with "passwd files dns"
> > running off an Ultrix hesiod server. Seems that getpwent() is
> > broken, but getpwnam() works. Does "finger -m thorepj" work?
>
> sulaco# finger -m thorpej
> Login: thorpej Name: Jason R Thorpe
> Directory: /users/thorpej Shell: /bin/ksh
> Office Phone: +1 415 604 0935 Home Phone: +1 408 866 1912
> On since Thu Apr 22 16:21 (PDT) on ttyp0 from 129.99.50.29
> New mail received Thu Apr 22 16:35 1999 (PDT)
> Unread since Thu Apr 22 16:35 1999 (PDT)
> No Plan.
> sulaco# finger thorpej
> finger: thorpej: no such user
> sulaco#
Cool, that's as far as I get too :-) The machine seems usable
(I've been using it since February without simonb in /etc/passwd),
but unfortunately no more answers from me...
Simon.
Responsible-Changed-From-To: lib-bug-people->lukem
Responsible-Changed-By: fair
Responsible-Changed-When: Fri Apr 23 14:00:39 PDT 1999
Responsible-Changed-Why:
This seems to be his...
State-Changed-From-To: open->feedback
State-Changed-By: lukem
State-Changed-When: Sun Apr 25 05:31:11 PDT 1999
State-Changed-Why:
should be fixed in rev 1.42 of getpwent.c, which i'm going to try and
get pulled up to the 1.4 branch once you confirm it's ok. i've done
a fair bit of testing with the different combinations of compat, files,
and nis (obviously compat by itself), and it seems to do the right thing
now.
what i haven't tested is pulling in netgroups (with +@) with compat,
and the dns (hesiod) backend.
i have a reasonable little test program if you want it to play with.
let me know if this works, so i can close the pr.
State-Changed-From-To: feedback->closed
State-Changed-By: lukem
State-Changed-When: Wed May 5 05:26:29 PDT 1999
State-Changed-Why:
closing pr, since i know this now works and i haven't received any feedback
to the contrary
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.