.\" Copyright 1999 SuSE GmbH Nuernberg, Germany .\" Author: Thorsten Kukuk .\" .\" %%%LICENSE_START(GPLv2+_SW_3_PARA) .\" This program is free software; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of the .\" License, or (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU .\" General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, see .\" . .\" %%%LICENSE_END .\" .\" 2008-12-05 Petr Baudis .\" Rewrite the NOTES section to reflect modern reality .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2001, 2005 Yuichi SATO .\" all rights reserved. .\" Translated Fri Jun 8 23:20:57 JST 2001 .\" by Yuichi SATO .\" Updated & Modified Sat Jan 22 14:11:51 JST 2005 .\" by Yuichi SATO .\" Updated 2009-03-05 by Kentaro Shirakata .\" .TH NSCD 8 2015\-05\-07 GNU "Linux Programmer's Manual" .SH 名前 nscd \- ネームサービスキャッシュデーモン .SH 説明 \fBnscd\fP は一般的なネームサービスに必要な多くのものを キャッシュとして提供するデーモンである。 デフォルトの設定ファイル \fI/etc/nscd.conf\fP でキャッシュデーモンの動作を決定する。 \fBnscd.conf\fP(5) を見よ。 .PP \fBnscd\fP provides caching for accesses of the \fBpasswd\fP(5), \fBgroup\fP(5), \fBhosts\fP(5) \fBservices\fP(5) and \fInetgroup\fP databases through standard libc interfaces, such as \fBgetpwnam\fP(3), \fBgetpwuid\fP(3), \fBgetgrnam\fP(3), \fBgetgrgid\fP(3), \fBgethostbyname\fP(3), and others. .PP 各データベースには 2 つのキャッシュがある。 肯定的 (positive) なキャッシュは見つかったアイテムをキャッシュし、 否定的 (negative) なキャッシュは見つからなかったアイテムをキャッシュする。 各キャッシュはデータの TTL (time\-to\-live, 生存時間) を個別に持っている。 特例として shadow ファイルはキャッシュされない点に注意すること。 \fBgetspnam\fP(3) を呼び出しても結果としてキャッシュされないままになる。 .SH オプション .TP \fB\-\-help\fP 全てのオプションとその動作をリストして表示する。 .SH 注意 デーモンは( \fIpasswd\fP データベースについては \fI/etc/passwd\fP、 \fIhosts\fP データベースについては \fI/etc/hosts\fP と \fI/etc/resolv.conf\fP というような)それぞれのデータベースのための設定ファイルを見張って、 これらが変更されるとキャッシュをフラッシュする。 しかし、これは( \fBinotify\fP(7) が利用可能で、glibc 2.9 以降が利用可能な場合を除いて) 短い遅延の後に起こり、またこの自動検出は非標準 NSS モジュールが \fI/etc/nsswitch.conf\fP で指定されている場合はその設定ファイルには対応しない。 この場合、データベースの設定ファイルを変更した後、 \fBnscd\fP のキャッシュを無効にするために以下のコマンドを実行する必要がある: .PP .in +4n .EX $ \fBnscd \-i\fP \fI\fP .EE .in .SH 関連項目 .\" .SH AUTHOR .\" .B nscd .\" was written by Thorsten Kukuk and Ulrich Drepper. \fBnscd.conf\fP(5), \fBnsswitch.conf\fP(5) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は \%https://www.kernel.org/doc/man\-pages/ に書かれている。