OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man8 / nscd.8
1 .\" -*- nroff -*-
2 .\" Copyright 1999 SuSE GmbH Nuernberg, Germany
3 .\" Author: Thorsten Kukuk <kukuk@suse.de>
4 .\"
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
16 .\" License along with this program; see the file COPYING.  If not,
17 .\" write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 .\" Boston, MA 02111-1307, USA.
19 .\"
20 .\" 2008-12-05 Petr Baudis <pasky@suse.cz>
21 .\"     Rewrite the NOTES section to reflect modern reality
22 .\"
23 .\" Japanese Version Copyright (c) 2001, 2005 Yuichi SATO
24 .\"         all rights reserved.
25 .\" Translated Fri Jun  8 23:20:57 JST 2001
26 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
27 .\" Updated & Modified Sat Jan 22 14:11:51 JST 2005
28 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
29 .\" Updated 2009-03-05 by Kentaro Shirakata <argrath@ub32.org>
30 .\"
31 .TH NSCD 8 2008-12-05 "GNU" "Linux Programmer's Manual"
32 .\"O .SH NAME
33 .SH Ì¾Á°
34 .\"O /usr/sbin/nscd \- name service cache daemon
35 /usr/sbin/nscd \- ¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥­¥ã¥Ã¥·¥å¥Ç¡¼¥â¥ó
36 .\"O .SH DESCRIPTION
37 .SH ÀâÌÀ
38 .\"O Nscd is a daemon that provides a cache for the most common name service
39 .\"O requests.
40 .\"O The default configuration file,
41 .\"O .IR /etc/nscd.conf ,
42 .\"O determines the behavior of the cache daemon.
43 .\"O See
44 .\"O .BR nscd.conf (5).
45 nscd ¤Ï°ìÈÌŪ¤Ê¥Í¡¼¥à¥µ¡¼¥Ó¥¹¤ËɬÍפÊ¿¤¯¤Î¤â¤Î¤ò
46 ¥­¥ã¥Ã¥·¥å¤È¤·¤ÆÄ󶡤¹¤ë¥Ç¡¼¥â¥ó¤Ç¤¢¤ë¡£
47 ¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¥Õ¥¡¥¤¥ë
48 .I /etc/nscd.conf
49 ¤Ç¥­¥ã¥Ã¥·¥å¥Ç¡¼¥â¥ó¤ÎÆ°ºî¤ò·èÄꤹ¤ë¡£
50 .BR nscd.conf (5)
51 ¤ò¸«¤è¡£
52
53 .\"O Nscd provides caching for accesses of the
54 .\"O .BR passwd (5),
55 .\"O .BR group (5),
56 .\"O and
57 .\"O .BR hosts (5)
58 .\"O databases through standard libc interfaces, such as
59 .\"O .BR getpwnam (3),
60 .\"O .BR getpwuid (3),
61 .\"O .BR getgrnam (3),
62 .\"O .BR getgrgid (3),
63 .\"O .BR gethostbyname (3),
64 .\"O and others.
65 nscd ¤Ï
66 .BR passwd (5),
67 .BR group (5),
68 .BR hosts (5)
69 ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ø¤Î¥¢¥¯¥»¥¹¤Î¥­¥ã¥Ã¥·¥å¤ò
70 .BR getpwnam (3),
71 .BR getpwuid (3),
72 .BR getgrnam (3),
73 .BR getgrgid (3),
74 .BR gethostbyname (3)
75 ¤Ê¤É¤Îɸ½à libc ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤òÄ̤·¤ÆÄ󶡤¹¤ë¡£
76
77 .\"O There are two caches for each database:
78 .\"O a positive one for items found, and a negative one
79 .\"O for items not found.
80 .\"O Each cache has a separate TTL (time-to-live)
81 .\"O period for its data.
82 .\"O Note that the shadow file is specifically not cached.
83 .\"O .BR getspnam (3)
84 .\"O calls remain uncached as a result.
85 ³Æ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ë¤Ï 2 ¤Ä¤Î¥­¥ã¥Ã¥·¥å¤¬¤¢¤ë¡£
86 ¹ÎÄêŪ (positive) ¤Ê¥­¥ã¥Ã¥·¥å¤Ï¸«¤Ä¤«¤Ã¤¿¥¢¥¤¥Æ¥à¤ò¥­¥ã¥Ã¥·¥å¤·¡¢
87 ÈÝÄêŪ (negative) ¤Ê¥­¥ã¥Ã¥·¥å¤Ï¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¥¢¥¤¥Æ¥à¤ò¥­¥ã¥Ã¥·¥å¤¹¤ë¡£
88 ³Æ¥­¥ã¥Ã¥·¥å¤Ï¥Ç¡¼¥¿¤Î TTL (time-to-live, À¸Â¸»þ´Ö) ¤ò¸ÄÊ̤˻ý¤Ã¤Æ¤¤¤ë¡£
89 ÆÃÎã¤È¤·¤Æ shadow ¥Õ¥¡¥¤¥ë¤Ï¥­¥ã¥Ã¥·¥å¤µ¤ì¤Ê¤¤ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
90 .BR getspnam (3)
91 ¤ò¸Æ¤Ó½Ð¤·¤Æ¤â·ë²Ì¤È¤·¤Æ¥­¥ã¥Ã¥·¥å¤µ¤ì¤Ê¤¤¤Þ¤Þ¤Ë¤Ê¤ë¡£
92 .\"O .SH OPTIONS
93 .SH ¥ª¥×¥·¥ç¥ó
94 .TP
95 .B "\-\-help"
96 .\"O will give you a list with all options and what they do.
97 Á´¤Æ¤Î¥ª¥×¥·¥ç¥ó¤È¤½¤ÎÆ°ºî¤ò¥ê¥¹¥È¤·¤Æɽ¼¨¤¹¤ë¡£
98 .\"O .SH NOTES
99 .SH Ãí°Õ
100 .\"O The daemon will try to watch for changes in configuration files
101 .\"O appropriate for each database (e.g.
102 .\"O .I /etc/passwd
103 .\"O for the
104 .\"O .I passwd
105 .\"O database or
106 .\"O .I /etc/hosts
107 .\"O and
108 .\"O .I /etc/resolv.conf
109 .\"O for the
110 .\"O .I hosts
111 .\"O database), and flush the cache when these are changed.
112 ¥Ç¡¼¥â¥ó¤Ï(
113 .I passwd
114 ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ë¤Ä¤¤¤Æ¤Ï
115 .IR /etc/passwd ¡¢
116 .I hosts
117 ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ë¤Ä¤¤¤Æ¤Ï
118 .I /etc/hosts
119 ¤È
120 .I /etc/resolv.conf
121 ¤È¤¤¤¦¤è¤¦¤Ê)¤½¤ì¤¾¤ì¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¤¿¤á¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤ò¸«Ä¥¤Ã¤Æ¡¢
122 ¤³¤ì¤é¤¬Êѹ¹¤µ¤ì¤ë¤È¥­¥ã¥Ã¥·¥å¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë¡£
123 .\"O However, this will happen only after a short delay (unless the
124 .\"O .BR inotify (7)
125 .\"O mechanism is available and glibc 2.9 or later is available),
126 .\"O and this auto-detection does not cover configuration files
127 .\"O required by nonstandard NSS modules, if any are specified in
128 .\"O .IR /etc/nsswitch.conf .
129 ¤·¤«¤·¡¢¤³¤ì¤Ï(
130 .BR inotify (7)
131 ¤¬ÍøÍѲÄǽ¤Ç¡¢glibc 2.9 °Ê¹ß¤¬ÍøÍѲÄǽ¤Ê¾ì¹ç¤ò½ü¤¤¤Æ)
132 û¤¤ÃÙ±ä¤Î¸å¤Ëµ¯¤³¤ê¡¢¤Þ¤¿¤³¤Î¼«Æ°¸¡½Ð¤ÏÈóɸ½à NSS ¥â¥¸¥å¡¼¥ë¤¬
133 .I /etc/nsswitch.conf
134 ¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¤½¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ë¤ÏÂбþ¤·¤Ê¤¤¡£
135 .\"O In that case, you need to run the following command
136 .\"O after changing the configuration file of the database so that
137 .\"O .B nscd
138 .\"O invalidates its cache:
139 ¤³¤Î¾ì¹ç¡¢¥Ç¡¼¥¿¥Ù¡¼¥¹¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤òÊѹ¹¤·¤¿¸å¡¢
140 .B nscd
141 ¤Î¥­¥ã¥Ã¥·¥å¤ò̵¸ú¤Ë¤¹¤ë¤¿¤á¤Ë°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ë:
142
143     $ \fBnscd -i\fP \fI<database>\fP
144 .\"O .SH "SEE ALSO"
145 .SH ´ØÏ¢¹àÌÜ
146 .BR nscd.conf (5),
147 .BR nsswitch.conf (5)
148 .\"O .\" .SH AUTHOR
149 .\" .SH Ãø¼Ô
150 .\"O .\" .B nscd
151 .\"O .\" was written by Thorsten Kukuk and Ulrich Drepper.
152 .\" .B nscd
153 .\" ¤Ï Thorsten Kukuk ¤È Ulrich Drepper ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£