2 .\" Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH NSCD.CONF 4 "Mar 6, 2017"
8 nscd.conf \- name service cache daemon configuration
17 The \fBnscd.conf\fR file contains the configuration information for
18 \fBnscd\fR(8). Each line specifies either an \fIattribute\fR and a
19 \fIvalue\fR, or an \fIattribute\fR, \fIcachename\fR, and a \fIvalue\fR. Fields
20 are separated either by SPACE or TAB characters. A `\fB#\fR' (number sign)
21 indicates the beginning of a comment; characters up to the end of the line are
22 not interpreted by \fBnscd\fR.
25 \fIcachename\fR is represented by \fBhosts\fR, \fBipnodes\fR, \fBpasswd\fR,
26 \fBgroup\fR, \fBexec_attr\fR, \fBprof_attr\fR, \fBuser_attr\fR, \fBethers\fR,
27 \fBrpc\fR, \fBprotocols\fR, \fBnetworks\fR, \fBbootparams\fR,
28 \fBauth_attr\fR, \fBservices\fR, \fBnetmasks\fR, \fBprinters\fR, or
32 The \fIattribute\fR field supports the following:
36 \fB\fBcheck-files\fR \fIcachename value\fR\fR
40 Enables or disables checking the file belonging to the specified
41 \fIcachename\fR for changes. If enabled (which is the default), changes in the
42 corresponding file cause the cache to be invalidated within 10 seconds. Can be
43 disabled if files are never modified for a slight performance boost,
44 particularly over \fBNFS\fR. \fIvalue\fR may be either \fByes\fR or \fBno\fR.
50 \fB\fBdebug-level\fR \fIvalue\fR\fR
54 Sets the debug level desired. \fIvalue\fR may range from \fB0\fR (the default)
55 to \fB10\fR. Use of this option causes \fBnscd\fR(8) to run in the foreground
56 and not become a daemon. Note that the output of the debugging command is not
57 likely to remain the same from release-to-release; scripts should \fInot\fR
64 \fB\fBenable-cache\fR \fIcachename value\fR\fR
68 Enables or disables the specified cache. \fIvalue\fR may be either \fByes\fR or
75 \fB\fBenable-per-user-lookup\fR \fIvalue\fR\fR
79 Enables or disables the ability of \fBnscd\fR to create a per-user \fBnscd\fR.
80 A per-user \fBnscd\fR performs per-user lookups and manages the per-user cache.
81 The per-user lookups might not be possible if the corresponding name service
82 switch backends do not support it or are not configured to do so. The value of
83 this attribute can be either \fByes\fR or \fBno\fR.
89 \fB\fBkeep-hot-count\fR \fIcachename value\fR\fR
93 This attribute allows the administrator to set the number of entries
94 \fBnscd\fR(8) is to keep current in the specified cache. \fIvalue\fR is an
95 integer number which should approximate the number of entries frequently used
102 \fB\fBlogfile\fR \fIdebug-file-name\fR\fR
106 Specifies name of the file to which debug info should be written. Use
107 \fB/dev/tty\fR for standard output.
113 \fB\fBmaximum-per-user-nscd\fR \fIvalue\fR\fR
117 Sets the maximum number of per-user \fBnscd\fRs that can be created and managed
118 by the main \fBnscd\fR daemon. The value is an integer.
124 \fB\fBnegative-time-to-live\fR \fIcachename value\fR\fR
128 Sets the time-to-live for negative entries (unsuccessful queries) in the
129 specified cache. \fIvalue\fR is in integer seconds. Can result in significant
130 performance improvements if there are several files owned by uids (user IDs)
131 not in system databases; should be kept small to reduce cache coherency
138 \fB\fBper-user-nscd-time-to-live\fR \fIvalue\fR\fR
142 Sets the time-to-live value for a per-user \fBnscd\fR based on the last time
143 the per-user \fBnscd\fR was active. The value is an integer that specifies a
150 \fB\fBpositive-time-to-live\fR \fIcachename value\fR\fR
154 Sets the time-to-live for positive entries (successful queries) in the
155 specified cache. \fIvalue\fR is in integer seconds. Larger values increase
156 cache hit rates and reduce mean response times, but increase problems with
157 cache coherence. Note that sites that push (update) NIS maps nightly can set
158 the value to be the equivalent of 12 hours or more with very good performance
165 \fB\fBsuggested-size\fR \fIcachename value\fR\fR
169 Sets the suggested number of hash buckets in the specified cache. This
170 parameter should be changed only if the number of entries in the cache exceeds
171 the suggested size by more than a factor of four or five. Since this is the
172 internal hash table size, \fIvalue\fR should remain a prime number for optimum
175 This attribute is obsolete and will be silently ignored. \fBnscd\fR now
176 automatically adjusts the hash table size.
181 See \fBattributes\fR(5) for descriptions of the following attributes:
189 ATTRIBUTE TYPE ATTRIBUTE VALUE
193 Interface Stability Committed
198 \fBnscd\fR(8), \fBauth_attr\fR(4), \fBbootparams\fR(4),
199 \fBethers\fR(4), \fBexec_attr\fR(4), \fBgroup\fR(4), \fBhosts\fR(4),
200 \fBnetmasks\fR(4), \fBnetworks\fR(4), \fBpasswd\fR(4), \fBprinters\fR(4),
201 \fBprof_attr\fR(4), \fBproject\fR(4), \fBprotocols\fR(4), \fBrpc\fR(4),
202 \fBservices\fR(4), \fBuser_attr\fR(4), \fBattributes\fR(5)