*BSD News Article 95311


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!knews.uk0.vbc.net!vbcnet-gb!azure.xara.net!xara.net!newsfeed.nacamar.de!rill.news.pipex.net!pipex!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsfeed.internetmci.com!in3.uu.net!140.142.64.3!news.u.washington.edu!davidb
From: davidb@ce.washington.edu (David W. Barts)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Run vipw and NIS breaks!
Date: 14 May 1997 22:40:52 GMT
Organization: University of Washington
Lines: 25
Message-ID: <5ldf1k$1ebs@nntp6.u.washington.edu>
NNTP-Posting-Host: nero.ce.washington.edu
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40863

Here's the scenario.  We have a FreeBSD-2.2.1 system (obtained via an
upgrade install from 2.1.0).  All goes well until a few weeks after
the upgrade when I finally have an occasion to run vipw for the first
time under 2.2.1.  As soon as I type ZZ, I start seeing messages like:

May 14 11:37:06 nisgate smbd[197]: Invalid guest account pcguest?? 

User pcguest is defined as our samba's guest account, and since (a) the
guest account is used a lot by Samba, and (b) the main purpose in life
of the system in question is to be a samba server, instantly I have a
dozen or so irate users asking why the network is down.

Pcguest is used by other servers, and since it is in the NIS databases
and nisgate is an NIS client, I never bothered to add the account to
the local password file.  Experimentation shows that *all* attempts to
resolve user names that are present only in NIS and not in the local
passwd file now fail.  Manually querying NIS with ypmatch still works.
The master.passwd and passwd files look OK.

It's running again, but only because I added a pcguest user to the
local passwd files.  Anyone know what's wrong and how to fix it?
--
David Barts N5JRN | UW Civil Engineering, Box 352700 | Seattle, WA 98195-2700
       davidb@ce.washington.edu | http://www.ce.washington.edu/~davidb
	2239 GMT T: 76 F wind: W 5 gust 9 mph P: 1015 mbar