diff options
Diffstat (limited to 'man/ru/man1/chage.1')
-rw-r--r-- | man/ru/man1/chage.1 | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/man/ru/man1/chage.1 b/man/ru/man1/chage.1 index 9f197f02..a5c7ef4f 100644 --- a/man/ru/man1/chage.1 +++ b/man/ru/man1/chage.1 @@ -2,12 +2,12 @@ .\" Title: chage .\" Author: Julianne Frances Haugh .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/> -.\" Date: 01/23/2020 +.\" Date: 07/22/2021 .\" Manual: Пользовательские команды -.\" Source: shadow-utils 4.8.1 +.\" Source: shadow-utils 4.9 .\" Language: Russian .\" -.TH "chage" "1" "01/23/2020" "shadow\-utils 4\&.8\&.1" "Пользовательские команды" +.TH "chage" "1" "07/22/2021" "shadow\-utils 4\&.9" "Пользовательские команды" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -45,13 +45,30 @@ command are: .PP \fB\-d\fR, \fB\-\-lastday\fR\ \&\fILAST_DAY\fR .RS 4 -Установить число дней прошедших с 1 января 1970 года, когда была последняя смена пароля\&. Дата может быть также указана в виде ГГГГ\-ММ\-ДД (или в форме согласно региональным настройкам)\&. +Set the number of days since January 1st, 1970 when the password was last changed\&. The date may also be expressed in the format YYYY\-MM\-DD (or the format more commonly used in your area)\&. If the +\fILAST_DAY\fR +is set to +\fI0\fR +the user is forced to change his password on the next log on\&. .RE .PP \fB\-E\fR, \fB\-\-expiredate\fR\ \&\fIEXPIRE_DATE\fR .RS 4 Установить дату устаревания учётной записи пользователя, которая задаётся числом дней прошедших с 1 января 1970 года\&. Дата может быть также задана в виде ГГГГ\-ММ\-ДД (или в форме согласно региональным настройкам)\&. Пользователь, чья учётная запись была заблокирована, должен обратиться к системному администратору, если хочет в дальнейшем работать с системой\&. .sp +For example the following can be used to set an account to expire in 180 days: +.sp +.if n \{\ +.RS 4 +.\} +.nf + chage \-E $(date \-d +180days +%Y\-%m\-%d) + +.fi +.if n \{\ +.RE +.\} +.sp Passing the number \fI\-1\fR as the @@ -137,6 +154,14 @@ The \fBchage\fR program requires a shadow password file to be available\&. .PP +The chage program will report only the information from the shadow password file\&. This implies that configuration from other sources (e\&.g\&. LDAP or empty password hash field from the passwd file) that affect the user\*(Aqs login will not be shown in the chage output\&. +.PP +The +\fBchage\fR +program will also not report any inconsistency between the shadow and passwd files (e\&.g\&. missing x in the passwd file)\&. The +\fBpwck\fR +can be used to check for this kind of inconsistencies\&. +.PP The \fBchage\fR command is restricted to the root user, except for the |