]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man5/nscd.conf.5
Changes.old: Add missing piece to 5.00 changelog
[thirdparty/man-pages.git] / man5 / nscd.conf.5
CommitLineData
fea681da
MK
1.\" Copyright (c) 1999, 2000 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.\"
3fdee471 20.TH NSCD.CONF 5 2014-02-07 "GNU" "Linux Programmer's Manual"
fea681da 21.SH NAME
ba40f6a2 22nscd.conf \- name service cache daemon configuration file
fea681da
MK
23.SH DESCRIPTION
24The file
8478ee02 25.I /etc/nscd.conf
fea681da
MK
26is read from
27.BR nscd (8)
c13182ef
MK
28at startup.
29Each line specifies either an attribute and a value, or an
30attribute, service, and a value.
31Fields are separated either by SPACE
32or TAB characters.
f81fb444 33A \(aq#\(aq (number sign) indicates the beginning of a
fea681da
MK
34comment; following characters, up to the end of the line,
35are not interpreted by nscd.
2dad4c59 36.PP
12ccb8fc 37Valid services are \fIpasswd\fP, \fIgroup\fP, \fIhosts\fP, \fIservices\fP,
44f3a7d7 38or \fInetgroup\fP.
2dad4c59 39.PP
fea681da
MK
40.B logfile
41.I debug-file-name
42.RS
43Specifies name of the file to which debug info should be written.
44.RE
2dad4c59 45.PP
fea681da
MK
46.B debug-level
47.I value
48.RS
49Sets the desired debug level.
44f3a7d7 50The default is 0.
fea681da 51.RE
2dad4c59 52.PP
fea681da
MK
53.B threads
54.I number
55.RS
56This is the number of threads that are started to wait for
c13182ef
MK
57requests.
58At least five threads will always be created.
fea681da 59.RE
2dad4c59 60.PP
44f3a7d7
PS
61.B max-threads
62.I number
63.RS
64Specifies the maximum number of threads.
65The default is 32.
66.RE
2dad4c59 67.PP
fea681da
MK
68.B server-user
69.I user
70.RS
71If this option is set, nscd will run as this user and not as root.
2bc2f479 72If a separate cache for every user is used (\-S parameter), this
fea681da
MK
73option is ignored.
74.RE
2dad4c59 75.PP
44f3a7d7
PS
76.B stat-user
77.I user
78.RS
79Specifies the user who is allowed to request statistics.
80.RE
2dad4c59 81.PP
44f3a7d7
PS
82.B reload-count
83unlimited |
84.I number
85.RS
86Limit on the number of times a cached entry gets reloaded without being used
87before it gets removed.
88The default is 5.
89.RE
2dad4c59 90.PP
44f3a7d7
PS
91.B paranoia
92.I <yes|no>
93.RS
94Enabling paranoia mode causes nscd to restart itself periodically.
95The default is no.
96.RE
2dad4c59 97.PP
44f3a7d7
PS
98.B restart-interval
99.I time
100.RS
101Sets the restart interval to
102.I time
103seconds
104if periodic restart is enabled by enabling
105.B paranoia
106mode.
107The default is 3600.
108.RE
2dad4c59 109.PP
fea681da
MK
110.B enable-cache
111.I service
112.I <yes|no>
113.RS
114Enables or disables the specified
115.I service
116cache.
44f3a7d7 117The default is no.
fea681da 118.RE
2dad4c59 119.PP
fea681da
MK
120.B positive-time-to-live
121.I service
122.I value
123.RS
124Sets the TTL (time-to-live) for positive entries (successful queries)
125in the specified cache for
126.IR service .
127.I Value
c13182ef
MK
128is in seconds.
129Larger values increase cache hit rates and reduce mean
fea681da
MK
130response times, but increase problems with cache coherence.
131.RE
2dad4c59 132.PP
fea681da
MK
133.B negative-time-to-live
134.I service
135.I value
136.RS
137Sets the TTL (time-to-live) for negative entries (unsuccessful queries)
138in the specified cache for
139.IR service .
140.I Value
c13182ef
MK
141is in seconds.
142Can result in significant performance improvements if there
fdc196f5 143are several files owned by UIDs (user IDs) not in system databases (for
f428b73e 144example untarring the Linux kernel sources as root); should be kept small
fea681da
MK
145to reduce cache coherency problems.
146.RE
2dad4c59 147.PP
fea681da
MK
148.B suggested-size
149.I service
150.I value
151.RS
152This is the internal hash table size,
153.I value
154should remain a prime number for optimum efficiency.
44f3a7d7 155The default is 211.
fea681da 156.RE
2dad4c59 157.PP
fea681da
MK
158.B check-files
159.I service
160.I <yes|no>
161.RS
162Enables or disables checking the file belonging to the specified
163.I service
c13182ef
MK
164for changes.
165The files are
fea681da
MK
166.IR /etc/passwd ,
167.IR /etc/group ,
44f3a7d7
PS
168.IR /etc/hosts ,
169.I /etc/services
fea681da 170and
44f3a7d7
PS
171.IR /etc/netgroup .
172The default is yes.
b3cd2c55 173.RE
2dad4c59 174.PP
b3cd2c55
MK
175.B persistent
176.I service
177.I <yes|no>
178.RS
179Keep the content of the cache for
180.I service
181over server restarts; useful when
182.B paranoia
183mode is set.
44f3a7d7 184The default is no.
b3cd2c55 185.RE
2dad4c59 186.PP
b3cd2c55
MK
187.B shared
188.I service
189.I <yes|no>
190.RS
191The memory mapping of the nscd databases for
c13182ef 192.I service
b3cd2c55
MK
193is shared with the clients so
194that they can directly search in them instead of having to ask the
ef0b8171 195daemon over the socket each time a lookup is performed.
44f3a7d7 196The default is no.
b3cd2c55 197.RE
2dad4c59 198.PP
44f3a7d7
PS
199.B max-db-size
200.I service
201.I bytes
202.RS
683c5f70 203The maximum allowable size, in bytes, of the database files for the
44f3a7d7
PS
204.IR service .
205The default is 33554432.
206.RE
2dad4c59 207.PP
44f3a7d7
PS
208.B auto-propagate
209.I service
210.I <yes|no>
211.RS
212When set to
b100ab55 213.I no
683c5f70 214for
36127c0e 215.I passwd
e6ca8d11 216or
683c5f70 217.I group
95a98532 218service, then the
683c5f70 219.I .byname
44f3a7d7 220requests are not added to
b100ab55 221.I passwd.byuid
683c5f70
MK
222or
223.I group.bygid
44f3a7d7 224cache.
683c5f70
MK
225This can help with tables containing multiple records for the same ID.
226The default is yes.
227This option is valid only for services
b100ab55 228.I passwd
683c5f70
MK
229and
230.IR group .
44f3a7d7 231.RE
3fdee471 232.SH NOTES
90234292
MK
233The default values stated in this manual page originate
234from the source code of
3fdee471 235.BR nscd (8)
05c39291 236and are used if not overridden in the configuration file.
90234292
MK
237The default values used in the configuration file of
238your distribution might differ.
47297adb 239.SH SEE ALSO
fea681da 240.BR nscd (8)
fd7f0a7f
MK
241.\" .SH AUTHOR
242.\" .B nscd
243.\" was written by Thorsten Kukuk and Ulrich Drepper.