Subject: misc/3743: YP inconsistancy with Sun
To: None <>
From: Hacksaw <>
List: netbsd-bugs
Date: 06/12/1997 15:57:59
>Number:         3743
>Category:       misc
>Synopsis:       YP will force the uid/gid listed in the passwd database, unlike Sun's.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 12 13:05:01 1997
>Originator:     Hacksaw
-####------------> Nipple!, Is qui iacit in hamas marsupiales.  | <-----
 ####  Rev. Irreverend Hacksaw, Omnibenevalent Polyparrot (ULC) | Melior
 ####           |  amare
 #### <-- Tartan of the ScotchBrite Masons (Are you two of us?) | chemia
>Release:        1.2
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.
Have a yp passwd entry like:


then login using a login from the NIS server.

Please add a line or two pointing out the discrepency in the man page
for yp and passwd, and add a check for this in /etc/security.



After the DESCRIPTION section add

    This version of YP varies from Sun's in some imporant ways, please
read the appropriate man pages with care, especially passwd(5).



Before the See Also section add

Note that this is different from Sun's implementation, which doesn't
allow substitution of uid and gid. The suggested generic yp passwd
entry is:



/etc/security also needs an addition to deal with this line, but my
awk skills blow, so I won't offer a fix at this time.