Bug 18516

Summary: getpwuid(0) fails when root account is in NIS
Product: Base System Reporter: graham <graham>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description graham 2000-05-12 18:50:00 UTC
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

Fix: 

unknown, workaround was to use another uid 0 account to access root
and leave a locked root account in the passwd files
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?
Comment 1 graham 2000-05-12 21:28:06 UTC
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>
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2001-07-22 03:16:10 UTC
State Changed
From-To: open->closed


Originator figured out his own problem.