Bug 12539

Summary: getpwuid() NIS UID override fails
Product: Base System Reporter: Charlie Root <root>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: dannyman
Priority: Normal    
Version: 3.2-RELEASE   
Hardware: Any   
OS: Any   

Description Charlie Root 1999-07-06 23:00:01 UTC
/etc/master.passwd:
+dannyman::1001:0::::dannyman::/usr/local/bin/tcsh

noneedto# id dannyman
uid=1001(dannyman) gid=0(wheel) groups=0(wheel)
noneedto# id 1001
id: 1001: no such user
noneedto# ypmatch dannyman passwd
dannyman:4hDtuhKllG8Xs:501:101::/home/dannyman:/bin/tcsh
noneedto# id 501
uid=1001(dannyman) gid=0(wheel) groups=0(wheel)
noneedto# finger dannyman
Login: dannyman                         Name: dannyman
Directory: /home/dannyman               Shell: /usr/local/bin/tcsh
Last login Tue Jul  6 14:38 (PDT) on ttyv0
No Mail.
Mail forwarded to: danny@tellme.com
No Plan.

User can log in successfully.

As far as I can tell from passwd(5), getpwuid should work.  As it is,
numerous programs, including sudo and ssh, fail.

Fix: 

If this not up anyone's ally, I could dig around the code myself.  Just let
me know. :)

-danny
Comment 1 Steve Price freebsd_committer freebsd_triage 1999-07-06 23:31:45 UTC
State Changed
From-To: open->closed

Duplicate of bin/12538.