SUMMARY - NIS client not updating (still broken)

From: Linda Vinke Hardie (lvhardie@pcs.cnu.edu)
Date: Mon Jan 18 1999 - 07:40:13 CST


Hi Everyone,

Thanks for the quick response! There was mention of checking for
errors in the /etc/group file, it just has the standard ones that
match what's on server1. Several mentioned to check for nscd (name
services cache daemon). I checked and sure enough it was started up in
the bootup scripts. The consensus was to disable it and not use it
anymore.

Sorry for not mentioning my OS: the servers are running 2.5.1, some of the
ws are 2.6 and others are still 2.5.1

I did zap nscd, waited for a bit, and then tried 'groups'. Still got
the old data. So I turned debugging up to 10 for nscd, started
it backup and sure enough it shows it going to cache for information. I
tried disabling the group cache, lowered the positive-time-to-live from
600 to 60, then to 6. It just won't update its cache.

Then I thought that maybe it just takes time after stopping nscd so I
stopped it and tried again this morning. Still the old data.

Does anyone know where the cache is? The man pages don't have much info
and I checked various tmp directories. I'm hoping that if I can find the
cache and remove it server2 will have to access NIS.

Thanks to all who responded!

        Sam C. Vilain
        Bill Hathaway
        job bogan
        David Evans
        Sean Harding
        Matthew Stier

        -Linda

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Linda Vinke Hardie
Computer Research Specialist & System Administrator
Dept. of Physics, Computer Science & Engineering
Christopher Newport University

Phone (757) 594-7749 Fax (757) 594-7919
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Original Post
*************

Hi Everyone,

I'm having the following problem with NIS:

In my network I have two servers, server1 for NIS and mail and server2 for
files, web, etc...

NIS is working beautifully in regards to all the workstations. For
server2 though I've recently discovered a bizarre problem. It appears as
though server2 is "caching" information about groups somewhere and is
using that information instead of requesting it from server1, the NIS
server.

If I do 'ypcat group' the NIS group info is displayed, but if I try to
check what groups I'm in with 'groups' it gives me *very* old group
info.

It gets weirder. I discovered that I have two versions of groups,
/usr/bin/groups and /usr/ucb/groups. The version in /usr/bin always
displays the old info but the verision in /usr/ucb gives me the new info
*only* if I give a username (i.e. 'groups lvhardie' gives new info but
using just 'groups' gives the old info). Both versions are on all the
workstation (same size, same date) and on the workstations both version
give correct/new info. I only have this problem on server2.

I've checked the man pages of everything I could find in regards to
yp/nis, searched the archives, searched dejanews and read books but I
don't find any mention of any files that server2 would be storing this
info in.

I've rebooted, stopped and restarted ypbind, re-did ypinit, tried ypxfr
but nothing even touches it. I still get the weird behavior.

In /etc/nsswitch.conf everything was looking at files first, then nis so I
switched all but passwd and group to go to nis first then files, rebooted,
nothing.

I would love some help on this if you have any idea what is going on, and
of course I'll summarize.

     Thanks,
     Linda

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Linda Vinke Hardie
Computer Research Specialist & System Administrator
Dept. of Physics, Computer Science & Engineering
Christopher Newport University

Phone (757) 594-7749 Fax (757) 594-7919
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:14 CDT