{"id":3585,"date":"2022-12-20T17:09:05","date_gmt":"2022-12-20T20:09:05","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/nscd-man8\/"},"modified":"2022-12-20T17:09:05","modified_gmt":"2022-12-20T20:09:05","slug":"nscd-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/nscd-man8\/","title":{"rendered":"NSCD (man8)"},"content":{"rendered":"<h1 align=\"center\">NSCD<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COLOPHON\">COLOPHON<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">nscd \u2212 name service cache daemon<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nscd<\/b> is a daemon that provides a cache for the most common name service requests. The default configuration file, <i>\/etc\/nscd.conf<\/i>, determines the behavior of the cache daemon. See <b>nscd.conf<\/b>(5).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nscd<\/b> provides caching for accesses of the <b>passwd<\/b>(5), <b>group<\/b>(5), <b>hosts<\/b>(5) <b>services<\/b>(5) and <i>netgroup<\/i> databases through standard libc interfaces, such as <b>getpwnam<\/b>(3), <b>getpwuid<\/b>(3), <b>getgrnam<\/b>(3), <b>getgrgid<\/b>(3), <b>gethostbyname<\/b>(3), and others.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">There are two caches for each database: a positive one for items found, and a negative one for items not found. Each cache has a separate TTL (time-to-live) period for its data. Note that the shadow file is specifically not cached. <b>getspnam<\/b>(3) calls remain uncached as a result.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>\u2212\u2212help<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">will give you a list with all options and what they do.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The daemon will try to watch for changes in configuration files appropriate for each database (e.g., <i>\/etc\/passwd<\/i> for the <i>passwd<\/i> database or <i>\/etc\/hosts<\/i> and <i>\/etc\/resolv.conf<\/i> for the <i>hosts<\/i> database), and flush the cache when these are changed. However, this will happen only after a short delay (unless the <b>inotify<\/b>(7) mechanism is available and glibc 2.9 or later is available), and this auto-detection does not cover configuration files required by nonstandard NSS modules, if any are specified in <i>\/etc\/nsswitch.conf<\/i>. In that case, you need to run the following command after changing the configuration file of the database so that <b>nscd<\/b> invalidates its cache:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">$ <b>nscd \u2212i<\/b> <i><database><\/i><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>nscd.conf<\/b><\/i>(5), <b>nsswitch.conf<\/b>(5)<\/p>\n<h2>COLOPHON <a name=\"COLOPHON\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This page is part of release 5.10 of the Linux <i>man-pages<\/i> project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https:\/\/www.kernel.org\/doc\/man\u2212pages\/.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  nscd \u2212 name service cache daemon <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,702],"class_list":["post-3585","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-nscd"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3585"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3585\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}