]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man8/nscd.8
ld.so.8: tfix
[thirdparty/man-pages.git] / man8 / nscd.8
CommitLineData
fea681da
MK
1.\" Copyright 1999 SuSE GmbH Nuernberg, Germany
2.\" Author: Thorsten Kukuk <kukuk@suse.de>
3.\"
f0008367 4.\" %%%LICENSE_START(GPLv2+_SW_3_PARA)
fea681da
MK
5.\" This program is free software; you can redistribute it and/or
6.\" modify it under the terms of the GNU General Public License as
7.\" published by the Free Software Foundation; either version 2 of the
8.\" License, or (at your option) any later version.
9.\"
10.\" This program is distributed in the hope that it will be useful,
11.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
12.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13.\" General Public License for more details.
14.\"
15.\" You should have received a copy of the GNU General Public
c715f741
MK
16.\" License along with this manual; if not, see
17.\" <http://www.gnu.org/licenses/>.
8ff7380d 18.\" %%%LICENSE_END
fea681da 19.\"
ac7302a6
PB
20.\" 2008-12-05 Petr Baudis <pasky@suse.cz>
21.\" Rewrite the NOTES section to reflect modern reality
22.\"
eae2dfce 23.TH NSCD 8 2012-05-10 "GNU" "Linux Programmer's Manual"
fea681da 24.SH NAME
3c6d314a 25nscd \- name service cache daemon
fea681da
MK
26.SH DESCRIPTION
27Nscd is a daemon that provides a cache for the most common name service
c13182ef
MK
28requests.
29The default configuration file,
fea681da 30.IR /etc/nscd.conf ,
c13182ef
MK
31determines the behavior of the cache daemon.
32See
fea681da
MK
33.BR nscd.conf (5).
34
4f9d18f8 35Nscd provides caching for accesses of the
fea681da
MK
36.BR passwd (5),
37.BR group (5),
38and
a7e1c01a 39.BR hosts (5)
fea681da
MK
40databases through standard libc interfaces, such as
41.BR getpwnam (3),
42.BR getpwuid (3),
43.BR getgrnam (3),
44.BR getgrgid (3),
45.BR gethostbyname (3),
46and others.
47
48There are two caches for each database:
49a positive one for items found, and a negative one
c13182ef
MK
50for items not found.
51Each cache has a separate TTL (time-to-live)
fea681da
MK
52period for its data.
53Note that the shadow file is specifically not cached.
54.BR getspnam (3)
55calls remain uncached as a result.
fea681da
MK
56.SH OPTIONS
57.TP
58.B "\-\-help"
59will give you a list with all options and what they do.
fea681da 60.SH NOTES
ac7302a6 61The daemon will try to watch for changes in configuration files
15079abb 62appropriate for each database (e.g.,
ac7302a6
PB
63.I /etc/passwd
64for the
65.I passwd
66database or
68aeaa00
SV
67.I /etc/hosts
68and
69.I /etc/resolv.conf
ac7302a6
PB
70for the
71.I hosts
72database), and flush the cache when these are changed.
73However, this will happen only after a short delay (unless the
74.BR inotify (7)
75mechanism is available and glibc 2.9 or later is available),
76and this auto-detection does not cover configuration files
c8f2dd47 77required by nonstandard NSS modules, if any are specified in
ac7302a6
PB
78.IR /etc/nsswitch.conf .
79In that case, you need to run the following command
80after changing the configuration file of the database so that
81.B nscd
82invalidates its cache:
83
68aeaa00 84 $ \fBnscd -i\fP \fI<database>\fP
47297adb 85.SH SEE ALSO
fea681da
MK
86.BR nscd.conf (5),
87.BR nsswitch.conf (5)
fd7f0a7f
MK
88.\" .SH AUTHOR
89.\" .B nscd
90.\" was written by Thorsten Kukuk and Ulrich Drepper.