[PATCH 1.1] Clean up netgroupcache

Ondřej Bílka neleai@seznam.cz
Wed May 28 09:16:00 GMT 2014


On Wed, May 28, 2014 at 07:21:22AM +0530, Siddhesh Poyarekar wrote:
> On Tue, May 27, 2014 at 10:27:09PM +0200, Ondřej Bílka wrote:
> > > make check doesn't test nscd.  You'll need to test this manually by
> > > adding various types of netgroups entries in /etc/netgroup.
> > > 
> > How, I get back to this and now study manpages which is bit confusing. I
> > tried to install nis for that but ypcat does not seem to work, do you
> > have a test script?
> 
> You don't need NIS to test it because you can add netgroup entries in
> a file called /etc/netgroup.  I don't have a script handy to create
> these, but the netgroup manpage[1] should help you with the netgroup
> file format to come up with one.  The file format is quite simple
> actually.  Each netgroup entry is of type:
> 
> netgroup_name (host1, user1, domain1) (host2, user2, domain2) ...
>
I already have these but do not know how to do query these, a nscd -g gives

            yes  cache is enabled
             no  cache is persistent
             no  cache is shared
            211  suggested size
         216064  total data pool size
              0  used data pool size
          28800  seconds time to live for positive entries
             20  seconds time to live for negative entries
              0  cache hits on positive entries
              0  cache hits on negative entries
 



More information about the Libc-alpha mailing list