]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man8/nscd.8
All pages: Remove the 5th argument to .TH
[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.\"
e4a74ca8 4.\" SPDX-License-Identifier: GPL-2.0-or-later
fea681da 5.\"
ac7302a6
PB
6.\" 2008-12-05 Petr Baudis <pasky@suse.cz>
7.\" Rewrite the NOTES section to reflect modern reality
8.\"
45186a5d 9.TH NSCD 8 2015-05-07 "Linux man-pages (unreleased)"
fea681da 10.SH NAME
3c6d314a 11nscd \- name service cache daemon
fea681da 12.SH DESCRIPTION
4ba752a1
MK
13.B nscd
14is a daemon that provides a cache for the most common name service
c13182ef
MK
15requests.
16The default configuration file,
fea681da 17.IR /etc/nscd.conf ,
c13182ef
MK
18determines the behavior of the cache daemon.
19See
fea681da 20.BR nscd.conf (5).
2dad4c59 21.PP
4ba752a1
MK
22.B nscd
23provides caching for accesses of the
fea681da
MK
24.BR passwd (5),
25.BR group (5),
a7e1c01a 26.BR hosts (5)
c0293ab6 27.BR services (5)
d9b0993a
MK
28and
29.I netgroup
fea681da
MK
30databases through standard libc interfaces, such as
31.BR getpwnam (3),
32.BR getpwuid (3),
33.BR getgrnam (3),
34.BR getgrgid (3),
35.BR gethostbyname (3),
36and others.
2dad4c59 37.PP
fea681da
MK
38There are two caches for each database:
39a positive one for items found, and a negative one
c13182ef
MK
40for items not found.
41Each cache has a separate TTL (time-to-live)
fea681da
MK
42period for its data.
43Note that the shadow file is specifically not cached.
44.BR getspnam (3)
45calls remain uncached as a result.
fea681da
MK
46.SH OPTIONS
47.TP
48.B "\-\-help"
49will give you a list with all options and what they do.
fea681da 50.SH NOTES
ac7302a6 51The daemon will try to watch for changes in configuration files
15079abb 52appropriate for each database (e.g.,
ac7302a6
PB
53.I /etc/passwd
54for the
55.I passwd
56database or
68aeaa00
SV
57.I /etc/hosts
58and
59.I /etc/resolv.conf
ac7302a6
PB
60for the
61.I hosts
62database), and flush the cache when these are changed.
63However, this will happen only after a short delay (unless the
64.BR inotify (7)
65mechanism is available and glibc 2.9 or later is available),
66and this auto-detection does not cover configuration files
c8f2dd47 67required by nonstandard NSS modules, if any are specified in
ac7302a6
PB
68.IR /etc/nsswitch.conf .
69In that case, you need to run the following command
70after changing the configuration file of the database so that
71.B nscd
72invalidates its cache:
019d9ee8
MK
73.PP
74.in +4n
75.EX
f764b455 76$ \fBnscd \-i\fP \fI<database>\fP
019d9ee8
MK
77.EE
78.in
47297adb 79.SH SEE ALSO
fea681da
MK
80.BR nscd.conf (5),
81.BR nsswitch.conf (5)
fd7f0a7f
MK
82.\" .SH AUTHOR
83.\" .B nscd
84.\" was written by Thorsten Kukuk and Ulrich Drepper.