Subject: misc/3743: YP inconsistancy with Sun
To: None <gnats-bugs@gnats.netbsd.org>
From: Hacksaw <hacksaw@user1.channel1.com>
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
>Last-Modified:
>Originator:     Hacksaw
>Organization:
-####------------> Nipple!, Is qui iacit in hamas marsupiales.  | <-----
 ####  Rev. Irreverend Hacksaw, Omnibenevalent Polyparrot (ULC) | Melior
 ####            http://www.channel1.com/users/hacksaw/         |  amare
 #### <-- Tartan of the ScotchBrite Masons (Are you two of us?) | chemia
>Release:        1.2
>Environment:
	
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


>Description:
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.

>Fix:
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.

Perhaps:

yp(8):

After the DESCRIPTION section add

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

----


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.
>Audit-Trail:
>Unformatted: