From nobody@FreeBSD.ORG  Fri May 12 10:45:35 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id B784237B5DE; Fri, 12 May 2000 10:45:35 -0700 (PDT)
Message-Id: <20000512174535.B784237B5DE@hub.freebsd.org>
Date: Fri, 12 May 2000 10:45:35 -0700 (PDT)
From: graham@insinc.ca
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: getpwuid(0) fails when root account is in NIS
X-Send-Pr-Version: www-1.0

>Number:         18516
>Category:       kern
>Synopsis:       getpwuid(0) fails when root account is in NIS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 12 10:50:00 PDT 2000
>Closed-Date:    Sat Jul 21 19:16:10 PDT 2001
>Last-Modified:  Sat Jul 21 19:16:50 PDT 2001
>Originator:     Graham Gillies
>Release:        3.1, 3.4, 4.0
>Organization:
INSINC
>Environment:
FreeBSD graham2.staff.dowco.com 3.4-RELEASE FreeBSD 3.4-RELEASE #12: Fri May  5 10:58:06 PDT 2000     root@graham2.staff.dowco.com:/usr/src/sys/compile/GRAHAM  i386

>Description:
When NIS is enabled and the root account is in NIS or any part of
it is in NIS, like +root whatever, calls to getpwuid(0) fail
>How-To-Repeat:
set up a machine as an NIS client
$ su -
# id
uid=0 gid=0(wheel)...
   +++ what happened to the username?
# su - someone
su: who are you?
>Fix:
unknown, workaround was to use another uid 0 account to access root
and leave a locked root account in the passwd files

>Release-Note:
>Audit-Trail:

From: Graham Gillies <graham@00-80-c8-0c-ef-43.bconnected.net>
To: freebsd-gnats-submit@FreeBSD.org, graham@insinc.ca
Cc:  
Subject: Re: kern/18516: getpwuid(0) fails when root account is in NIS
Date: Fri, 12 May 2000 13:28:06 -0700

 Oops, should have poked around a bit more before subbmitting, looks like
 the db->get library thing fails when the key is 0 and it doesn't exist in
 the file, any other non existant uid seems ok.
 -- 
 ________________________________
 Graham Gillies  <bofh@telus.net>
 
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 19:16:10 PDT 2001 
State-Changed-Why:  

Originator figured out his own problem. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=18516 
>Unformatted:
