Subject: Re: misc/3743: YP inconsistancy with Sun
To: None <>
From: Jason Thorpe <>
List: netbsd-bugs
Date: 06/12/1997 14:45:25
On Thu, 12 Jun 1997 15:57:59 -0400 (EDT) 
 Hacksaw <> wrote:

 > System: NetBSD gerbils 1.2 NetBSD 1.2 (GERBILS1.2) #0: Fri May 23 22:53:23 EDT 1997 root@gerbils:/usr/src/sys/arch/i386/compile/GERBILS1.2 i386

 > In configuring a machine to interact with my organizations yp server,
 > I used a passwd entry similar to the Sun standard, only adding colons
 > to fulfill the format requirements. To my horror, everyone gets logged
 > as root. This is true in OS version 1.2.1 as well.
 > >How-To-Repeat:
 > Have a yp passwd entry like:
 > +::0:0::::::
 > then login using a login from the NIS server.

This was noticed and fixed in -current some time ago.  pwd_mkdb(8) now
issues a warning then uid and gid are overridden with 0.

The ability to override is considered a feature, BTW.  It allows you
to assign identical uids (like "nobody") and/or gids to netgroups of
users, etc.

Jason R. Thorpe                             
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939