Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / ru / passwd.1
1 '\" t
2 .\"     Title: passwd
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5 .\"      Date: 02/16/2011
6 .\"    Manual: Пользовательские команды
7 .\"    Source: Пользовательские команды
8 .\"  Language: Russian
9 .\"
10 .TH "passwd" "1" "02/16/2011" "Пользовательские команды" "Пользовательские команды"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "НАЗВАНИЕ"
31 passwd \- изменяет пароль пользователя
32 .SH "СИНТАКСИС"
33 .HP \w'\fBpasswd\fR\ 'u
34 \fBpasswd\fR [\fIпараметры\fR] [\fILOGIN\fR]
35 .SH "ОПИСАНИЕ"
36 .PP
37 The
38 \fBpasswd\fR
39 command changes passwords for user accounts\&. A normal user may only change the password for his/her own account, while the superuser may change the password for any account\&.
40 \fBpasswd\fR
41 also changes the account or associated password validity period\&.
42 .SS "Изменение пароля"
43 .PP
44 Сначала пользователя попросят ввести старый пароль, если он был\&. Этот пароль зашифровывается и сравнивается с имеющимся\&. У пользователя есть только одна попытка ввести правильный пароль\&. Для суперпользователя этот шаг пропускается, для того чтобы можно было изменить забытый пароль\&.
45 .PP
46 После ввода пароля проверяется информация об устаревании пароля, чтобы убедиться, что пользователю разрешено изменять пароль в настоящий момент\&. Если нет, то
47 \fBpasswd\fR
48 не производит изменение пароля и завершает работу\&.
49 .PP
50 Затем пользователю предложат дважды ввести новый пароль\&. Значение второго ввода сравнивается с первым и для изменения пароли из обеих попыток должны совпасть\&.
51 .PP
52 Затем пароль тестируется на сложность подбора\&. Согласно общим принципам, пароли должны быть длиной от 6 до 8 символов и включать один или более символов каждого типа:
53 .sp
54 .RS 4
55 .ie n \{\
56 \h'-04'\(bu\h'+03'\c
57 .\}
58 .el \{\
59 .sp -1
60 .IP \(bu 2.3
61 .\}
62 строчные буквы
63 .RE
64 .sp
65 .RS 4
66 .ie n \{\
67 \h'-04'\(bu\h'+03'\c
68 .\}
69 .el \{\
70 .sp -1
71 .IP \(bu 2.3
72 .\}
73 цифры от 0 до 9
74 .RE
75 .sp
76 .RS 4
77 .ie n \{\
78 \h'-04'\(bu\h'+03'\c
79 .\}
80 .el \{\
81 .sp -1
82 .IP \(bu 2.3
83 .\}
84 знаки пунктуации
85 .RE
86 .PP
87 Не включайте системные символы стирания и удаления\&. Программа
88 \fBpasswd\fR
89 не примет пароль, который не имеет достаточной сложности\&.
90 .SS "Выбор пароля"
91 .PP
92 The security of a password depends upon the strength of the encryption algorithm and the size of the key space\&. The legacy
93 \fIUNIX\fR
94 System encryption method is based on the NBS DES algorithm\&. More recent methods are now recommended (see
95 \fBENCRYPT_METHOD\fR)\&. The size of the key space depends upon the randomness of the password which is selected\&.
96 .PP
97 Компромиссом в безопасности пароля является небрежный выбор пароля и сложность работы с ним\&. По этой причине, вы не должны использовать пароль, который является словом из словаря или который придётся записать из\-за его сложности\&. Также, пароль не должен быть названием чего\-либо, номером вашей лицензии, днём рождения и домашним адресом\&. Обо всём этом легко догадаться, что приведёт к нарушению безопасности системы\&.
98 .PP
99 You can find advices on how to choose a strong password on http://en\&.wikipedia\&.org/wiki/Password_strength
100 .SH "ПАРАМЕТРЫ"
101 .PP
102 Параметры команды
103 \fBpasswd\fR:
104 .PP
105 \fB\-a\fR, \fB\-\-all\fR
106 .RS 4
107 Этот параметр можно использовать только вместе с
108 \fB\-S\fR
109 для вывода статуса всех пользователей\&.
110 .RE
111 .PP
112 \fB\-d\fR, \fB\-\-delete\fR
113 .RS 4
114 Удалить пароль пользователя (сделать его пустым)\&. Это быстрый способ заблокировать пароль учётной записи\&. Это делает указанную учётную запись беспарольной\&.
115 .RE
116 .PP
117 \fB\-e\fR, \fB\-\-expire\fR
118 .RS 4
119 Немедленно сделать пароль устаревшим\&. В результате это заставит пользователя изменить пароль при следующем входе в систему\&.
120 .RE
121 .PP
122 \fB\-h\fR, \fB\-\-help\fR
123 .RS 4
124 Показать краткую справку и закончить работу\&.
125 .RE
126 .PP
127 \fB\-i\fR, \fB\-\-inactive\fR\fIДНЕЙ\fR
128 .RS 4
129 Этот параметр используется для блокировки учётной записи по прошествии заданного числа дней после устаревания пароля\&. То есть, если пароль устарел и прошло более указанных
130 \fIДНЕЙ\fR, то пользователь больше не сможет использовать данную учётную запись\&.
131 .RE
132 .PP
133 \fB\-k\fR, \fB\-\-keep\-tokens\fR
134 .RS 4
135 Указывает, что изменение пароля нужно выполнить только для устаревших ключей аутентификации (паролей)\&. Пользователи хотят оставить свои непросроченные ключи нетронутыми\&.
136 .RE
137 .PP
138 \fB\-l\fR, \fB\-\-lock\fR
139 .RS 4
140 Lock the password of the named account\&. This option disables a password by changing it to a value which matches no possible encrypted value (it adds a \(aa!\(aa at the beginning of the password)\&.
141 .sp
142 Note that this does not disable the account\&. The user may still be able to login using another authentication token (e\&.g\&. an SSH key)\&. To disable the account, administrators should use
143 \fBusermod \-\-expiredate 1\fR
144 (this set the account\*(Aqs expire date to Jan 2, 1970)\&.
145 .sp
146 Users with a locked password are not allowed to change their password\&.
147 .RE
148 .PP
149 \fB\-n\fR, \fB\-\-mindays\fR \fIMIN_DAYS\fR
150 .RS 4
151 Задать
152 \fIминимальное количество дней\fR
153 между сменой пароля\&. Нулевое значение этого поля указывает на то, что пользователь может менять свой пароль когда захочет\&.
154 .RE
155 .PP
156 \fB\-q\fR, \fB\-\-quiet\fR
157 .RS 4
158 Не выводить сообщений при работе\&.
159 .RE
160 .PP
161 \fB\-r\fR, \fB\-\-repository\fR\fIРЕПОЗИТОРИЙ\fR
162 .RS 4
163 Изменить пароль в
164 \fIРЕПОЗИТОРИИ\fR\&.
165 .RE
166 .PP
167 \fB\-S\fR, \fB\-\-status\fR
168 .RS 4
169 Display account status information\&. The status information consists of 7 fields\&. The first field is the user\*(Aqs login name\&. The second field indicates if the user account has a locked password (L), has no password (NP), or has a usable password (P)\&. The third field gives the date of the last password change\&. The next four fields are the minimum age, maximum age, warning period, and inactivity period for the password\&. These ages are expressed in days\&.
170 .RE
171 .PP
172 \fB\-u\fR, \fB\-\-unlock\fR
173 .RS 4
174 Unlock the password of the named account\&. This option re\-enables a password by changing the password back to its previous value (to the value before using the
175 \fB\-l\fR
176 option)\&.
177 .RE
178 .PP
179 \fB\-w\fR, \fB\-\-warndays\fR\fIПРЕД_ДНЕЙ\fR
180 .RS 4
181 Установить число дней выдачи предупреждения, перед тем как потребуется смена пароля\&. В параметре
182 \fIПРЕД_ДНЕЙ\fR
183 указывается число дней перед тем как пароль устареет, в течении которых пользователю будут напоминать, что пароль скоро устареет\&.
184 .RE
185 .PP
186 \fB\-x\fR, \fB\-\-maxdays\fR\fIМАКС_ДНЕЙ\fR
187 .RS 4
188 Установить максимальное количество дней, в течении которых пароль остаётся рабочим\&. После
189 \fIМАКС_ДНЕЙ\fR
190 пароль нужно изменить\&.
191 .RE
192 .SH "ПРЕДОСТЕРЕЖЕНИЯ"
193 .PP
194 Password complexity checking may vary from site to site\&. The user is urged to select a password as complex as he or she feels comfortable with\&.
195 .PP
196 Users may not be able to change their password on a system if NIS is enabled and they are not logged into the NIS server\&.
197 .SH "CONFIGURATION"
198 .PP
199 The following configuration variables in
200 /etc/login\&.defs
201 change the behavior of this tool:
202 .PP
203 \fBENCRYPT_METHOD\fR (string)
204 .RS 4
205 This defines the system default encryption algorithm for encrypting passwords (if no algorithm are specified on the command line)\&.
206 .sp
207 It can take one of these values:
208 .sp
209 .RS 4
210 .ie n \{\
211 \h'-04'\(bu\h'+03'\c
212 .\}
213 .el \{\
214 .sp -1
215 .IP \(bu 2.3
216 .\}
217 \fIDES\fR
218 (default)
219 .RE
220 .sp
221 .RS 4
222 .ie n \{\
223 \h'-04'\(bu\h'+03'\c
224 .\}
225 .el \{\
226 .sp -1
227 .IP \(bu 2.3
228 .\}
229 \fIMD5\fR
230 .RE
231 .sp
232 .RS 4
233 .ie n \{\
234 \h'-04'\(bu\h'+03'\c
235 .\}
236 .el \{\
237 .sp -1
238 .IP \(bu 2.3
239 .\}
240 \fISHA256\fR
241 .RE
242 .sp
243 .RS 4
244 .ie n \{\
245 \h'-04'\(bu\h'+03'\c
246 .\}
247 .el \{\
248 .sp -1
249 .IP \(bu 2.3
250 .\}
251 \fISHA512\fR
252 .RE
253 .sp
254 Note: this parameter overrides the
255 \fBMD5_CRYPT_ENAB\fR
256 variable\&.
257 .RE
258 .PP
259 \fBMD5_CRYPT_ENAB\fR (boolean)
260 .RS 4
261 Indicate if passwords must be encrypted using the MD5\-based algorithm\&. If set to
262 \fIyes\fR, new passwords will be encrypted using the MD5\-based algorithm compatible with the one used by recent releases of FreeBSD\&. It supports passwords of unlimited length and longer salt strings\&. Set to
263 \fIno\fR
264 if you need to copy encrypted passwords to other systems which don\*(Aqt understand the new algorithm\&. Default is
265 \fIno\fR\&.
266 .sp
267 This variable is superceded by the
268 \fBENCRYPT_METHOD\fR
269 variable or by any command line option used to configure the encryption algorithm\&.
270 .sp
271 This variable is deprecated\&. You should use
272 \fBENCRYPT_METHOD\fR\&.
273 .RE
274 .PP
275 \fBOBSCURE_CHECKS_ENAB\fR (boolean)
276 .RS 4
277 Enable additional checks upon password changes\&.
278 .RE
279 .PP
280 \fBPASS_ALWAYS_WARN\fR (boolean)
281 .RS 4
282 Warn about weak passwords (but still allow them) if you are root\&.
283 .RE
284 .PP
285 \fBPASS_CHANGE_TRIES\fR (number)
286 .RS 4
287 Maximum number of attempts to change password if rejected (too easy)\&.
288 .RE
289 .PP
290 \fBPASS_MAX_LEN\fR (number), \fBPASS_MIN_LEN\fR (number)
291 .RS 4
292 Number of significant characters in the password for crypt()\&.
293 \fBPASS_MAX_LEN\fR
294 is 8 by default\&. Don\*(Aqt change unless your crypt() is better\&. This is ignored if
295 \fBMD5_CRYPT_ENAB\fR
296 set to
297 \fIyes\fR\&.
298 .RE
299 .PP
300 \fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number)
301 .RS 4
302 When
303 \fBENCRYPT_METHOD\fR
304 is set to
305 \fISHA256\fR
306 or
307 \fISHA512\fR, this defines the number of SHA rounds used by the encryption algorithm by default (when the number of rounds is not specified on the command line)\&.
308 .sp
309 With a lot of rounds, it is more difficult to brute forcing the password\&. But note also that more CPU resources will be needed to authenticate users\&.
310 .sp
311 If not specified, the libc will choose the default number of rounds (5000)\&.
312 .sp
313 The values must be inside the 1000\-999999999 range\&.
314 .sp
315 If only one of the
316 \fBSHA_CRYPT_MIN_ROUNDS\fR
317 or
318 \fBSHA_CRYPT_MAX_ROUNDS\fR
319 values is set, then this value will be used\&.
320 .sp
321 If
322 \fBSHA_CRYPT_MIN_ROUNDS\fR
323 >
324 \fBSHA_CRYPT_MAX_ROUNDS\fR, the highest value will be used\&.
325 .RE
326 .SH "ФАЙЛЫ"
327 .PP
328 /etc/passwd
329 .RS 4
330 содержит информацию о пользователях
331 .RE
332 .PP
333 /etc/shadow
334 .RS 4
335 содержит защищаемую информацию о пользователях
336 .RE
337 .PP
338 /etc/login\&.defs
339 .RS 4
340 содержит конфигурацию подсистемы теневых паролей
341 .RE
342 .SH "ВОЗВРАЩАЕМЫЕ ЗНАЧЕНИЯ"
343 .PP
344 Программа
345 \fBpasswd\fR
346 завершая работу, возвращает следующие значения:
347 .PP
348 \fI0\fR
349 .RS 4
350 успешное выполнение
351 .RE
352 .PP
353 \fI1\fR
354 .RS 4
355 доступ запрещён
356 .RE
357 .PP
358 \fI2\fR
359 .RS 4
360 недопустимая комбинация параметров
361 .RE
362 .PP
363 \fI3\fR
364 .RS 4
365 неожиданная ошибка при работе, ничего не сделано
366 .RE
367 .PP
368 \fI4\fR
369 .RS 4
370 неожиданная ошибка при работе, отсутствует файл
371 passwd
372 .RE
373 .PP
374 \fI5\fR
375 .RS 4
376 файл
377 passwd
378 занят другой программой, попробуйте ещё раз
379 .RE
380 .PP
381 \fI6\fR
382 .RS 4
383 недопустимое значение параметра
384 .RE
385 .SH "СМОТРИТЕ ТАКЖЕ"
386 .PP
387
388 \fBpasswd\fR(5),
389 \fBshadow\fR(5),
390 \fBlogin.defs\fR(5),
391 \fBusermod\fR(8)\&.