Summary: | nscd caching breaks 'getent' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Daniel Lawson <daniel> |
Component: | Current packages | Assignee: | SpanKY <vapier> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Daniel Lawson
2004-10-02 20:20:55 UTC
not a ntp bug is there a way to tell nscd to refresh its cache ? After a bit more investigation, it seems the solution is fairly easy after all: nscd -i <tablename> will cause nscd to invalidate that table (eg, passwd, group, hosts) So it seems that the correct way forward is for the enewgroup / enewuser functions to call nscd -i group/passwd as appropriate. This could also be implemented as part of the init script, either as a 'flush' command to flush all tables, or flush-<table> for each of passwd, group, hosts fixed in cvs, thanks |