tizen 2.0
[external/shadow.git] / man / pl / pwck.8
1 '\" t
2 .\"     Title: pwck
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
5 .\"      Date: 07/24/2009
6 .\"    Manual: Polecenia Zarządzania Systemem
7 .\"    Source: Polecenia Zarządzania Systemem
8 .\"  Language: Polish
9 .\"
10 .TH "PWCK" "8" "07/24/2009" "Polecenia Zarządzania Systemem" "Polecenia Zarządzania Systemem"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAZWA"
22 pwck \- verify integrity of password files
23 .SH "SK\(/LADNIA"
24 .HP \w'\fBpwck\fR\ 'u
25 \fBpwck\fR [\-q] [\-s] [\fIpasswd\fR\ [\ \fIshadow\fR\ ]]
26 .HP \w'\fBpwck\fR\ 'u
27 \fBpwck\fR [\-q] [\-r] [\fIpasswd\fR\ [\ \fIshadow\fR\ ]]
28 .SH "OPIS"
29 .PP
30 The
31 \fBpwck\fR
32 command verifies the integrity of the users and authentication information\&. It checks that all entries in
33 /etc/passwd
34 and
35 /etc/shadow
36 have the proper format and contain valid data\&. The user is prompted to delete entries that are improperly formatted or which have other uncorrectable errors\&.
37 .PP
38 Checks are made to verify that each entry has:
39 .sp
40 .RS 4
41 .ie n \{\
42 \h'-04'\(bu\h'+03'\c
43 .\}
44 .el \{\
45 .sp -1
46 .IP \(bu 2.3
47 .\}
48 the correct number of fields
49 .RE
50 .sp
51 .RS 4
52 .ie n \{\
53 \h'-04'\(bu\h'+03'\c
54 .\}
55 .el \{\
56 .sp -1
57 .IP \(bu 2.3
58 .\}
59 a unique and valid user name
60 .RE
61 .sp
62 .RS 4
63 .ie n \{\
64 \h'-04'\(bu\h'+03'\c
65 .\}
66 .el \{\
67 .sp -1
68 .IP \(bu 2.3
69 .\}
70 a valid user and group identifier
71 .RE
72 .sp
73 .RS 4
74 .ie n \{\
75 \h'-04'\(bu\h'+03'\c
76 .\}
77 .el \{\
78 .sp -1
79 .IP \(bu 2.3
80 .\}
81 a valid primary group
82 .RE
83 .sp
84 .RS 4
85 .ie n \{\
86 \h'-04'\(bu\h'+03'\c
87 .\}
88 .el \{\
89 .sp -1
90 .IP \(bu 2.3
91 .\}
92 a valid home directory
93 .RE
94 .sp
95 .RS 4
96 .ie n \{\
97 \h'-04'\(bu\h'+03'\c
98 .\}
99 .el \{\
100 .sp -1
101 .IP \(bu 2.3
102 .\}
103 a valid login shell
104 .RE
105 .PP
106
107 shadow
108 checks are enabled when a second file parameter is specified or when
109 /etc/shadow
110 exists on the system\&.
111 .PP
112 These checks are the following:
113 .sp
114 .RS 4
115 .ie n \{\
116 \h'-04'\(bu\h'+03'\c
117 .\}
118 .el \{\
119 .sp -1
120 .IP \(bu 2.3
121 .\}
122 every passwd entry has a matching shadow entry, and every shadow entry has a matching passwd entry
123 .RE
124 .sp
125 .RS 4
126 .ie n \{\
127 \h'-04'\(bu\h'+03'\c
128 .\}
129 .el \{\
130 .sp -1
131 .IP \(bu 2.3
132 .\}
133 passwords are specified in the shadowed file
134 .RE
135 .sp
136 .RS 4
137 .ie n \{\
138 \h'-04'\(bu\h'+03'\c
139 .\}
140 .el \{\
141 .sp -1
142 .IP \(bu 2.3
143 .\}
144 shadow entries have the correct number of fields
145 .RE
146 .sp
147 .RS 4
148 .ie n \{\
149 \h'-04'\(bu\h'+03'\c
150 .\}
151 .el \{\
152 .sp -1
153 .IP \(bu 2.3
154 .\}
155 shadow entries are unique in shadow
156 .RE
157 .sp
158 .RS 4
159 .ie n \{\
160 \h'-04'\(bu\h'+03'\c
161 .\}
162 .el \{\
163 .sp -1
164 .IP \(bu 2.3
165 .\}
166 the last password changes are not in the future
167 .RE
168 .PP
169 The checks for correct number of fields and unique user name are fatal\&. If the entry has the wrong number of fields, the user will be prompted to delete the entire line\&. If the user does not answer affirmatively, all further checks are bypassed\&. An entry with a duplicated user name is prompted for deletion, but the remaining checks will still be made\&. All other errors are warning and the user is encouraged to run the
170 \fBusermod\fR
171 command to correct the error\&.
172 .PP
173 The commands which operate on the
174 /etc/passwd
175 file are not able to alter corrupted or duplicated entries\&.
176 \fBpwck\fR
177 should be used in those circumstances to remove the offending entry\&.
178 .SH "OPCJE"
179 .PP
180 Polecenie
181 \fBpwck\fR
182 posiada następujące opcje:
183 .PP
184 \fB\-q\fR
185 .RS 4
186 Report errors only\&. The warnings which do not require any action from the user won\'t be displayed\&.
187 .RE
188 .PP
189 \fB\-r\fR
190 .RS 4
191 Execute the
192 \fBpwck\fR
193 command in read\-only mode\&.
194 .RE
195 .PP
196 \fB\-s\fR
197 .RS 4
198 Sort entries in
199 /etc/passwd
200 and
201 /etc/shadow
202 by UID\&.
203 .RE
204 .PP
205 By default,
206 \fBpwck\fR
207 operates on the files
208 /etc/passwd
209 and
210 /etc/shadow\&. The user may select alternate files with the
211 \fIpasswd\fR
212 and
213 \fIshadow\fR
214 parameters\&.
215 .SH "CONFIGURATION"
216 .PP
217 The following configuration variables in
218 /etc/login\&.defs
219 change the behavior of this tool:
220 .PP
221 \fBPASS_MAX_DAYS\fR (number)
222 .RS 4
223 The maximum number of days a password may be used\&. If the password is older than this, a password change will be forced\&. If not specified, \-1 will be assumed (which disables the restriction)\&.
224 .RE
225 .PP
226 \fBPASS_MIN_DAYS\fR (number)
227 .RS 4
228 The minimum number of days allowed between password changes\&. Any password changes attempted sooner than this will be rejected\&. If not specified, \-1 will be assumed (which disables the restriction)\&.
229 .RE
230 .PP
231 \fBPASS_WARN_AGE\fR (number)
232 .RS 4
233 The number of days warning given before a password expires\&. A zero means warning is given only upon the day of expiration, a negative value means no warning is given\&. If not specified, no warning will be provided\&.
234 .RE
235 .SH "PLIKI"
236 .PP
237 /etc/group
238 .RS 4
239 Informacje o grupach użytkownik\('ow\&.
240 .RE
241 .PP
242 /etc/passwd
243 .RS 4
244 Informacja o kontach użytkownik\('ow\&.
245 .RE
246 .PP
247 /etc/shadow
248 .RS 4
249 Informacje chronione o użytkownikach\&.
250 .RE
251 .SH "KOD ZAKOŃCZENIA"
252 .PP
253 Polecenie
254 \fBpwck\fR
255 kończy dzia\(/lanie z następującymi wartościami kod\('ow zakończenia:
256 .PP
257 \fI0\fR
258 .RS 4
259 poprawne zakończenie dzia\(/lania programu
260 .RE
261 .PP
262 \fI1\fR
263 .RS 4
264 niepoprawna sk\(/ladnia polecenia
265 .RE
266 .PP
267 \fI2\fR
268 .RS 4
269 one or more bad password entries
270 .RE
271 .PP
272 \fI3\fR
273 .RS 4
274 can\'t open password files
275 .RE
276 .PP
277 \fI4\fR
278 .RS 4
279 can\'t lock password files
280 .RE
281 .PP
282 \fI5\fR
283 .RS 4
284 can\'t update password files
285 .RE
286 .PP
287 \fI6\fR
288 .RS 4
289 can\'t sort password files
290 .RE
291 .SH "ZOBACZ TAKŻE"
292 .PP
293
294 \fBgroup\fR(5),
295 \fBgrpck\fR(8),
296 \fBpasswd\fR(5),
297 \fBshadow\fR(5),
298 \fBusermod\fR(8)\&.