summaryrefslogtreecommitdiff
path: root/man/zh_CN/man8/usermod.8
diff options
context:
space:
mode:
Diffstat (limited to 'man/zh_CN/man8/usermod.8')
-rw-r--r--man/zh_CN/man8/usermod.820
1 files changed, 13 insertions, 7 deletions
diff --git a/man/zh_CN/man8/usermod.8 b/man/zh_CN/man8/usermod.8
index 270df0aa..11e66810 100644
--- a/man/zh_CN/man8/usermod.8
+++ b/man/zh_CN/man8/usermod.8
@@ -2,12 +2,12 @@
.\" Title: usermod
.\" Author: Julianne Frances Haugh
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 2020-01-23
+.\" Date: 2021-07-22
.\" Manual: 系统管理命令
-.\" Source: shadow-utils 4.8.1
+.\" Source: shadow-utils 4.9
.\" Language: Chinese Simplified
.\"
-.TH "USERMOD" "8" "2020-01-23" "shadow\-utils 4\&.8\&.1" "系统管理命令"
+.TH "USERMOD" "8" "2021-07-22" "shadow\-utils 4\&.9" "系统管理命令"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -68,7 +68,7 @@ utility\&.
.sp
If the
\fB\-m\fR
-option is given, the contents of the current home directory will be moved to the new home directory, which is created if it does not already exist\&.
+option is given, the contents of the current home directory will be moved to the new home directory, which is created if it does not already exist\&. If the current home directory does not exist the new home directory will not be created\&.
.RE
.PP
\fB\-e\fR, \fB\-\-expiredate\fR\ \&\fIEXPIRE_DATE\fR
@@ -107,6 +107,9 @@ entry will be created if there were none\&.
用户主目录中,属于原来的主组的文件将转交新组所有。
.sp
主目录之外的文件所属的组必须手动修改。
+.sp
+The change of the group ownership of files inside of the user\*(Aqs home directory is also not done if the home dir owner uid is different from the current or new user id\&. This is a safety measure for special home directories such as
+/\&.
.RE
.PP
\fB\-G\fR, \fB\-\-groups\fR\ \&\fIGROUP1\fR[\fI,GROUP2,\&.\&.\&.\fR[\fI,GROUPN\fR]]]
@@ -143,7 +146,7 @@ to
.PP
\fB\-m\fR, \fB\-\-move\-home\fR
.RS 4
-将用户的主目录移动到新位置。
+Move the content of the user\*(Aqs home directory to the new location\&. If the current home directory does not exist the new home directory will not be created\&.
.sp
This option is only valid in combination with the
\fB\-d\fR
@@ -192,7 +195,7 @@ directory\&. This option does not chroot and is intended for preparing a cross\-
.PP
\fB\-s\fR, \fB\-\-shell\fR\ \&\fISHELL\fR
.RS 4
-用户的新登录 shell 的名称。将此字段设置为空会让系统选择默认的登录 shell。
+The path of the user\*(Aqs new login shell\&. Setting this field to blank causes the system to select the default login shell\&.
.RE
.PP
\fB\-u\fR, \fB\-\-uid\fR\ \&\fIUID\fR
@@ -207,6 +210,9 @@ option is used\&. The value must be non\-negative\&.
.sp
用户主目录之外文件所有权必须手动修复。
.sp
+The change of the user ownership of files inside of the user\*(Aqs home directory is also not done if the home dir owner uid is different from the current or new user id\&. This is a safety measure for special home directories such as
+/\&.
+.sp
No checks will be performed with regard to the
\fBUID_MIN\fR,
\fBUID_MAX\fR,
@@ -294,7 +300,7 @@ from /etc/login\&.defs\&.
.PP
\fB\-Z\fR, \fB\-\-selinux\-user\fR\ \&\fISEUSER\fR
.RS 4
-用户登陆的 SELinux 用户。
+用户登录的 SELinux 用户。
.sp
A blank
\fISEUSER\fR