summaryrefslogtreecommitdiff
path: root/man/zh_CN/man1/chage.1
diff options
context:
space:
mode:
Diffstat (limited to 'man/zh_CN/man1/chage.1')
-rw-r--r--man/zh_CN/man1/chage.171
1 files changed, 42 insertions, 29 deletions
diff --git a/man/zh_CN/man1/chage.1 b/man/zh_CN/man1/chage.1
index 1cf4f31e..523312ad 100644
--- a/man/zh_CN/man1/chage.1
+++ b/man/zh_CN/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: 2019-06-13
+.\" Date: 2019-12-01
.\" Manual: 用户命令
-.\" Source: shadow-utils 4.7
+.\" Source: shadow-utils 4.8
.\" Language: Chinese Simplified
.\"
-.TH "CHAGE" "1" "2019-06-13" "shadow\-utils 4\&.7" "用户命令"
+.TH "CHAGE" "1" "2019-12-01" "shadow\-utils 4\&.8" "用户命令"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -39,8 +39,9 @@ The
command changes the number of days between password changes and the date of the last password change\&. This information is used by the system to determine when a user must change their password\&.
.SH "选项"
.PP
+The options which apply to the
\fBchage\fR
-命令可以接受的选项有:
+command are:
.PP
\fB\-d\fR, \fB\-\-lastday\fR\ \&\fILAST_DAY\fR
.RS 4
@@ -51,10 +52,11 @@ Set the number of days since January 1st, 1970 when the password was last change
.RS 4
Set the date or number of days since January 1, 1970 on which the user\*(Aqs account will no longer be accessible\&. The date may also be expressed in the format YYYY\-MM\-DD (or the format more commonly used in your area)\&. A user whose account is locked must contact the system administrator before being able to use the system again\&.
.sp
-\fIEXPIRE_DATE\fR
-设置为
+Passing the number
\fI\-1\fR
-会移除账户的过期日期。
+as the
+\fIEXPIRE_DATE\fR
+will remove an account expiration date\&.
.RE
.PP
\fB\-h\fR, \fB\-\-help\fR
@@ -62,16 +64,22 @@ Set the date or number of days since January 1, 1970 on which the user\*(Aqs acc
现实帮助信息并退出。
.RE
.PP
+\fB\-i\fR, \fB\-\-iso8601\fR
+.RS 4
+When printing dates, use YYYY\-MM\-DD format\&.
+.RE
+.PP
\fB\-I\fR, \fB\-\-inactive\fR\ \&\fIINACTIVE\fR
.RS 4
Set the number of days of inactivity after a password has expired before the account is locked\&. The
\fIINACTIVE\fR
option is the number of days of inactivity\&. A user whose account is locked must contact the system administrator before being able to use the system again\&.
.sp
-\fIINACTIVE\fR
-设置为
+Passing the number
\fI\-1\fR
-会移除账户禁用功能。
+as the
+\fIINACTIVE\fR
+will remove an account\*(Aqs inactivity\&.
.RE
.PP
\fB\-l\fR, \fB\-\-list\fR
@@ -81,8 +89,8 @@ option is the number of days of inactivity\&. A user whose account is locked mus
.PP
\fB\-m\fR, \fB\-\-mindays\fR\ \&\fIMIN_DAYS\fR
.RS 4
-在密码更改之间的最小天数设置为
-\fIMIN_DAYS\fR。此字段中的 0 值表示用户可以在任何时间更改其密码。
+Set the minimum number of days between password changes to
+\fIMIN_DAYS\fR\&. A value of zero for this field indicates that the user may change their password at any time\&.
.RE
.PP
\fB\-M\fR, \fB\-\-maxdays\fR\ \&\fIMAX_DAYS\fR
@@ -95,10 +103,11 @@ is less than the current day, the user will be required to change their password
\fB\-W\fR
option, which provides the user with advance warning\&.
.sp
-\fIMAX_DAYS\fR
-设置为
+Passing the number
\fI\-1\fR
-会移除密码有效性检查。
+as
+\fIMAX_DAYS\fR
+will remove checking a password\*(Aqs validity\&.
.RE
.PP
\fB\-R\fR, \fB\-\-root\fR\ \&\fICHROOT_DIR\fR
@@ -117,24 +126,27 @@ Set the number of days of warning before a password change is required\&. The
option is the number of days prior to the password expiring that a user will be warned their password is about to expire\&.
.RE
.PP
-如果没有选择任何选项,\fBchage\fR
-会进入交互模式,以所有字段的当前值提示用户。输入一个新值可以更改这些字段,或者留空使用当前值。当前值出现在
+If none of the options are selected,
+\fBchage\fR
+operates in an interactive fashion, prompting the user with the current values for all of the fields\&. Enter the new value to change the field, or leave the line blank to use the current value\&. The current value is displayed between a pair of
\fI[ ]\fR
-标记对里。
+marks\&.
.SH "注意"
.PP
+The
\fBchage\fR
-需要有一个影子密码文件才可用。
+program requires a shadow password file to be available\&.
.PP
-只有 root 才可以使用
-\fBchage\fR,一个特殊情况是
+The
+\fBchage\fR
+command is restricted to the root user, except for the
\fB\-l\fR
-选项,用来让非特权用户觉得自己的密码或账户何时过期。
+option, which may be used by an unprivileged user to determine when their password or account is due to expire\&.
.SH "配置文件"
.PP
-在
+The following configuration variables in
/etc/login\&.defs
-中有如下配置变量,可以用来更改此工具的行为:
+change the behavior of this tool:
.SH "文件"
.PP
/etc/passwd
@@ -148,27 +160,28 @@ option is the number of days prior to the password expiring that a user will be
.RE
.SH "退出值"
.PP
+The
\fBchage\fR
-命令有如下退出值:
+command exits with the following values:
.PP
\fI0\fR
.RS 4
-成功
+success
.RE
.PP
\fI1\fR
.RS 4
-权限不够
+permission denied
.RE
.PP
\fI2\fR
.RS 4
-无效的命令语法
+invalid command syntax
.RE
.PP
\fI15\fR
.RS 4
-无法找到影子密码文件
+can\*(Aqt find the shadow password file
.RE
.SH "参见"
.PP