OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / shadow / draft / man8 / pwck.8
1 .\"$Id: pwck.8,v 1.9 2002/03/08 04:39:12 kloczek Exp $
2 .\" Copyright 1992, Julianne Frances Haugh
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
14 .\"    may be used to endorse or promote products derived from this software
15 .\"    without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
21 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" SUCH DAMAGE.
28 .\"
29 .\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
30 .\"         all rights reserved.
31 .\" Translated Fri Feb 14 23:06:00 JST 1997
32 .\"         by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
33 .\" Updated  Sun 3 Mar 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
34 .\" Modified Sun 22 Sep 2002 by NAKANO Takeo
35 .\"
36 .\"O .TH PWCK 1
37 .TH PWCK 8
38 .\"O .SH NAME
39 .SH Ì¾Á°
40 .\"O pwck \- verify integrity of password files
41 pwck \- ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤¬Àµ¤·¤¤¤«¤É¤¦¤«¸¡ºº¤¹¤ë
42 .\"O .SH SYNOPSIS
43 .SH ½ñ¼°
44 \fBpwck\fR [\fB-sr\fR] [\fIpasswd\fR \fIshadow\fR]
45 .\"O .SH DESCRIPTION
46 .SH ÀâÌÀ
47 .\"O \fBpwck\fR verifies the integrity of the system authentication information.
48 .\"O All entries in the \fI/etc/passwd\fR and \fI/etc/shadow\fR are checked to
49 .\"O see that the entry has the proper format and valid data in each field.
50 .\"O The user is prompted to delete entries that are improperly formatted or
51 .\"O which have other incorrectable errors.
52 \fBpwck\fR ¥³¥Þ¥ó¥É¤Ï¥·¥¹¥Æ¥à¤Îǧ¾Ú¾ðÊó¤¬Àµ¤·¤¤¤«¤É¤¦¤«¸¡ºº¤¹¤ë¡£
53 \fI/etc/passwd\fR ¤È \fI/etc/shadow\fR
54 ³Æ¥Õ¥¡¥¤¥ë¤Î¤¹¤Ù¤Æ¤Î¥¨¥ó¥È¥ê¤ËÂФ·¡¢
55 ³Æ¥Õ¥£¡¼¥ë¥É¤Î½ñ¼°¤¬Àµ¤·¤¤¤«¡¢
56 ¤½¤Î¥Ç¡¼¥¿¤¬Í­¸ú¤Ê¤â¤Î¤«¤É¤¦¤«¤ò¸¡¾Ú¤¹¤ë¡£
57 ½ñ¼°¤¬Àµ¤·¤¯¤Ê¤¤¥¨¥ó¥È¥ê¤ä¡¢
58 ½¤ÀµÉÔǽ¤Ê¸í¤ê¤ò´Þ¤à¥¨¥ó¥È¥ê¤Ïºï½ü¤¹¤ë¤è¤¦¥×¥í¥ó¥×¥È¤ò½Ð¤¹¡£
59 .P
60 .\"O Checks are made to verify that each entry has
61 ³Æ¡¹¤Î¥¨¥ó¥È¥ê¤ËÂФ·¤Æ
62 .sp
63 .in +.5i
64 .\"O - the correct number of fields
65 - ¥Õ¥£¡¼¥ë¥É¤Î¿ô¤¬Àµ¤·¤¤¤«
66 .br
67 .\"O - a unique user name
68 - ¥æ¡¼¥¶Ì¾¤Ë½ÅÊ£¤¬¤Ê¤¤¤«
69 .br
70 .\"O - a valid user and group identifier
71 - ¥æ¡¼¥¶¤ä¥°¥ë¡¼¥×¤Î ID ¤¬Àµ¤·¤¤¤«
72 .br
73 .\"O - a valid primary group
74 - ¥×¥é¥¤¥Þ¥ê¥°¥ë¡¼¥×¤¬Àµ¤·¤¤¤«
75 .br
76 .\"O - a valid home directory
77 - ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤¬Àµ¤·¤¤¤«
78 .br
79 .\"O - a valid login shell
80 - ¥í¥°¥¤¥ó¥·¥§¥ë¤¬Àµ¤·¤¤¤«
81 .in -.5i
82 .sp
83 ¤¬¥Á¥§¥Ã¥¯¤µ¤ì¤ë¡£
84 .P
85 .\"O The checks for correct number of fields and unique user name are fatal.
86 .\"O If the entry has the wrong number of fields, the user will be prompted to
87 .\"O delete the entire line.
88 .\"O If the user does not answer affirmatively, all further checks are bypassed.
89 .\"O An entry with a duplicated user name is prompted for deletion, but the
90 .\"O remaining checks will still be made.
91 .\"O All other errors are warning and the user is encouraged to run the
92 .\"O \fBusermod\fR command to correct the error.
93 ¥Õ¥£¡¼¥ë¥É¤Î¿ô¤¬´Ö°ã¤Ã¤Æ¤¤¤¿¤ê¡¢
94 ¥°¥ë¡¼¥×̾¤¬½ÅÊ£¤·¤Æ¤¤¤ë¤Î¤ÏÃ×̿Ū¤Ê¥¨¥é¡¼¤Ç¤¢¤ë¡£
95 ¥Õ¥£¡¼¥ë¥É¤Î¿ô¤¬Àµ¤·¤¯¤Ê¤¤¾ì¹ç¡¢
96 ¥æ¡¼¥¶¡¼¤Ï¤½¤Î¥¨¥ó¥È¥ê¹Ô¤òºï½ü¤¹¤ë¤è¤¦Â¥¤µ¤ì¤ë¡£
97 ºï½ü¤ËƱ°Õ¤·¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢¤½¤ì°Ê¹ß¤Î¥Á¥§¥Ã¥¯¤Ï¹Ô¤ï¤ì¤Ê¤¤¡£
98 ½ÅÊ£¤·¤¿¥°¥ë¡¼¥×̾¤¬¤¢¤Ã¤¿¾ì¹ç¤âºï½ü¤òÂ¥¤µ¤ì¤ë¤¬¡¢
99 ¤³¤Î¾ì¹ç¤Ïºï½ü¤·¤Ê¤¯¤Æ¤â¤½¤ì°Ê¹ß¤Î¥Á¥§¥Ã¥¯¤Ï³¹Ô¤µ¤ì¤ë¡£
100 ¾¤Î¤¹¤Ù¤Æ¤Î¥¨¥é¡¼¤ËÂФ·¤Æ¤Ï·Ù¹ð¤¬¤Ê¤µ¤ì¤ë¡£
101 \fBusermod\fR ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤½¤Î¥¨¥é¡¼¤ò½¤Àµ¤¹¤ë¤ÈÎɤ¤¤À¤í¤¦¡£
102 .P
103 .\"O The commands which operate on the \fI/etc/passwd\fR file are not able to
104 .\"O alter corrupted or duplicated entries.
105 .\"O \fBpwck\fR should be used in those circumstances to remove the offending
106 .\"O entry.
107 \fI/etc/passwd\fR ¥Õ¥¡¥¤¥ë¤òÁàºî¤¹¤ë¥³¥Þ¥ó¥É¤Ï¡¢
108 ²õ¤ì¤¿¥¨¥ó¥È¥ê¤ä½ÅÊ£¤·¤¿¥¨¥ó¥È¥ê¤òÊѹ¹¤Ç¤­¤Ê¤¤¡£
109 ¤½¤Î¤è¤¦¤ÊºÝ¤Ë¸í¤ê¤Î¤¢¤ë¥¨¥ó¥È¥ê¤òºï½ü¤¹¤ë¤Ë¤Ï
110 \fBpwck\fR ¤òÍѤ¤¤ë¤È¤è¤¤¡£
111 .\"O .SH OPTIONS
112 .SH ¥ª¥×¥·¥ç¥ó
113 .\"O By default, \fBpwck\fR operates on the files \fI/etc/passwd\fR and
114 .\"O \fI/etc/shadow\fR.
115 .\"O The user may select alternate files with the \fIpasswd\fR and \fIshadow\fR
116 .\"O parameters.
117 .\"O Additionally, the user may execute the command in read-only mode by
118 .\"O specifying the \fB-r\fR flag.
119 .\"O This causes all questions regarding changes to be answered \fBno\fR
120 .\"O without user intervention.
121 .\"O \fBpwck\fR can also sort entries in \fI/etc/passwd\fR and \fI/etc/shadow\fR
122 .\"O by UID. To run it in sort mode pass it \fB-s\fR flag. No checks are
123 .\"O performed then, it just sorts.
124 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï \fBpwck\fR ¤Ï \fI/etc/passwd\fR ¥Õ¥¡¥¤¥ë¤È
125 \fI/etc/shadow\fR ¤ËÂФ·¤ÆÆ°ºî¤¹¤ë¡£
126 \fIpasswd\fR ¥Ñ¥é¥á¡¼¥¿¤È \fIshadow\fR ¥Ñ¥é¥á¡¼¥¿¤òÍѤ¤¤Æ¡¢
127 Ê̤Υե¡¥¤¥ë¤òÁªÂò¤¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
128 ¤µ¤é¤Ë \fB-r\fR ¥Õ¥é¥°¤ò»ØÄꤹ¤ì¤Ð¡¢
129 ¥ê¡¼¥É¥ª¥ó¥ê¡¼¥â¡¼¥É¤Ç¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
130 ¤³¤Î¾ì¹ç¡¢Êѹ¹¤ò¹Ô¤¦¤«¤É¤¦¤«¤Ï¥æ¡¼¥¶¤ØÌ䤤¹ç¤ï¤µ¤ì¤º¡¢
131 ¼«Æ°Åª¤Ë \fBno\fR ¤È²óÅú¤µ¤ì¤ë¡£
132 .B pwck
133 ¤Ï
134 .I /etc/passwd
135 ¤È
136 .I /etc/shadow
137 ¤Î¥¨¥ó¥È¥ê¤ò UID ¤Ç¥½¡¼¥È¤¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
138 ¥½¡¼¥È¥â¡¼¥É¤ÇÆ°ºî¤µ¤»¤ë¤Ë¤Ï \fB-s\fR ¥Õ¥é¥°¤òÍ¿¤¨¤ë¡£
139 ¤³¤Î¾ì¹ç¥Á¥§¥Ã¥¯¤Ï¹Ô¤ï¤ì¤º¡¢Ã±¤Ë¥½¡¼¥È¤¹¤ë¤À¤±¤Ç¤¢¤ë¡£
140 .\"O .SH FILES
141 .SH ¥Õ¥¡¥¤¥ë
142 .\"O /etc/passwd \- user account information
143 /etc/passwd \- ¥æ¡¼¥¶¡¼¥¢¥«¥¦¥ó¥È¾ðÊó
144 .br
145 .\"O /etc/shadow \- encrypted password information
146 /etc/shadow \- °Å¹æ²½¤µ¤ì¤¿¥Ñ¥¹¥ï¡¼¥É¾ðÊó
147 .br
148 .\"O /etc/group \- group information
149 /etc/group \- ¥°¥ë¡¼¥×¾ðÊó
150 .\"O .SH SEE ALSO
151 .SH ´ØÏ¢¹àÌÜ
152 .BR group (5),
153 .BR passwd (5),
154 .BR shadow (5),
155 .BR usermod (8)
156 .\"O .SH DIAGNOSTICS
157 .SH ÊÖ¤êÃÍ
158 .\"O The \fBpwck\fR command exits with the following values:
159 \fBpwck\fR ¥³¥Þ¥ó¥É¤Ï°Ê²¼¤ÎÃͤòÊÖ¤·¤Æ½ªÎ»¤¹¤ë:
160 .IP 0 5
161 .\"O Success
162 À®¸ù
163 .IP 1 5
164 .\"O Syntax Error
165 ¹½Ê¸¥¨¥é¡¼
166 .IP 2 5
167 .\"O One or more bad password entries
168 ¸í¤Ã¤¿¥Ñ¥¹¥ï¡¼¥É¥¨¥ó¥È¥ê¡¼¤¬Â¸ºß¤¹¤ë
169 .IP 3 5
170 .\"O Cannot open password files
171 ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤Ç¤­¤Ê¤¤
172 .IP 4 5
173 .\"O Cannot lock password files
174 ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤ò¥í¥Ã¥¯¤Ç¤­¤Ê¤¤
175 .IP 5 5
176 .\"O Cannot update password files
177 ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤ò¹¹¿·½ÐÍè¤Ê¤¤
178 .\"O .SH AUTHOR
179 .SH Ãø¼Ô
180 Julianne Frances Haugh (jockgrrl@ix.netcom.com)