Blame man8/nscd.8

Packit 7cfc04
.\" Copyright 1999 SuSE GmbH Nuernberg, Germany
Packit 7cfc04
.\" Author: Thorsten Kukuk <kukuk@suse.de>
Packit 7cfc04
.\"
Packit 7cfc04
.\" %%%LICENSE_START(GPLv2+_SW_3_PARA)
Packit 7cfc04
.\" This program is free software; you can redistribute it and/or
Packit 7cfc04
.\" modify it under the terms of the GNU General Public License as
Packit 7cfc04
.\" published by the Free Software Foundation; either version 2 of the
Packit 7cfc04
.\" License, or (at your option) any later version.
Packit 7cfc04
.\"
Packit 7cfc04
.\" This program is distributed in the hope that it will be useful,
Packit 7cfc04
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 7cfc04
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 7cfc04
.\" General Public License for more details.
Packit 7cfc04
.\"
Packit 7cfc04
.\" You should have received a copy of the GNU General Public
Packit 7cfc04
.\" License along with this manual; if not, see
Packit 7cfc04
.\" <http://www.gnu.org/licenses/>.
Packit 7cfc04
.\" %%%LICENSE_END
Packit 7cfc04
.\"
Packit 7cfc04
.\" 2008-12-05 Petr Baudis <pasky@suse.cz>
Packit 7cfc04
.\"	Rewrite the NOTES section to reflect modern reality
Packit 7cfc04
.\"
Packit 7cfc04
.TH NSCD 8 2015-05-07 "GNU" "Linux Programmer's Manual"
Packit 7cfc04
.SH NAME
Packit 7cfc04
nscd \- name service cache daemon
Packit 7cfc04
.SH DESCRIPTION
Packit 7cfc04
.B nscd
Packit 7cfc04
is a daemon that provides a cache for the most common name service
Packit 7cfc04
requests.
Packit 7cfc04
The default configuration file,
Packit 7cfc04
.IR /etc/nscd.conf ,
Packit 7cfc04
determines the behavior of the cache daemon.
Packit 7cfc04
See
Packit 7cfc04
.BR nscd.conf (5).
Packit 7cfc04
.PP
Packit 7cfc04
.B nscd
Packit 7cfc04
provides caching for accesses of the
Packit 7cfc04
.BR passwd (5),
Packit 7cfc04
.BR group (5),
Packit 7cfc04
.BR hosts (5)
Packit 7cfc04
.BR services (5)
Packit 7cfc04
and
Packit 7cfc04
.I netgroup
Packit 7cfc04
databases through standard libc interfaces, such as
Packit 7cfc04
.BR getpwnam (3),
Packit 7cfc04
.BR getpwuid (3),
Packit 7cfc04
.BR getgrnam (3),
Packit 7cfc04
.BR getgrgid (3),
Packit 7cfc04
.BR gethostbyname (3),
Packit 7cfc04
and others.
Packit 7cfc04
.PP
Packit 7cfc04
There are two caches for each database:
Packit 7cfc04
a positive one for items found, and a negative one
Packit 7cfc04
for items not found.
Packit 7cfc04
Each cache has a separate TTL (time-to-live)
Packit 7cfc04
period for its data.
Packit 7cfc04
Note that the shadow file is specifically not cached.
Packit 7cfc04
.BR getspnam (3)
Packit 7cfc04
calls remain uncached as a result.
Packit 7cfc04
.SH OPTIONS
Packit 7cfc04
.TP
Packit 7cfc04
.B "\-\-help"
Packit 7cfc04
will give you a list with all options and what they do.
Packit 7cfc04
.SH NOTES
Packit 7cfc04
The daemon will try to watch for changes in configuration files
Packit 7cfc04
appropriate for each database (e.g.,
Packit 7cfc04
.I /etc/passwd
Packit 7cfc04
for the
Packit 7cfc04
.I passwd
Packit 7cfc04
database or
Packit 7cfc04
.I /etc/hosts
Packit 7cfc04
and
Packit 7cfc04
.I /etc/resolv.conf
Packit 7cfc04
for the
Packit 7cfc04
.I hosts
Packit 7cfc04
database), and flush the cache when these are changed.
Packit 7cfc04
However, this will happen only after a short delay (unless the
Packit 7cfc04
.BR inotify (7)
Packit 7cfc04
mechanism is available and glibc 2.9 or later is available),
Packit 7cfc04
and this auto-detection does not cover configuration files
Packit 7cfc04
required by nonstandard NSS modules, if any are specified in
Packit 7cfc04
.IR /etc/nsswitch.conf .
Packit 7cfc04
In that case, you need to run the following command
Packit 7cfc04
after changing the configuration file of the database so that
Packit 7cfc04
.B nscd
Packit 7cfc04
invalidates its cache:
Packit 7cfc04
.PP
Packit 7cfc04
.in +4n
Packit 7cfc04
.EX
Packit 7cfc04
$ \fBnscd -i\fP \fI<database>\fP
Packit 7cfc04
.EE
Packit 7cfc04
.in
Packit 7cfc04
.SH SEE ALSO
Packit 7cfc04
.BR nscd.conf (5),
Packit 7cfc04
.BR nsswitch.conf (5)
Packit 7cfc04
.\" .SH AUTHOR
Packit 7cfc04
.\" .B nscd
Packit 7cfc04
.\" was written by Thorsten Kukuk and Ulrich Drepper.
Packit 7cfc04
.SH COLOPHON
Packit 7cfc04
This page is part of release 4.15 of the Linux
Packit 7cfc04
.I man-pages
Packit 7cfc04
project.
Packit 7cfc04
A description of the project,
Packit 7cfc04
information about reporting bugs,
Packit 7cfc04
and the latest version of this page,
Packit 7cfc04
can be found at
Packit 7cfc04
\%https://www.kernel.org/doc/man\-pages/.