diff options
Diffstat (limited to 'man/zh_CN/man8/useradd.8')
-rw-r--r-- | man/zh_CN/man8/useradd.8 | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/man/zh_CN/man8/useradd.8 b/man/zh_CN/man8/useradd.8 index ea0f7b15..b1e91f1c 100644 --- a/man/zh_CN/man8/useradd.8 +++ b/man/zh_CN/man8/useradd.8 @@ -2,12 +2,12 @@ .\" Title: useradd .\" 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 "USERADD" "8" "2020-01-23" "shadow\-utils 4\&.8\&.1" "系统管理命令" +.TH "USERADD" "8" "2021-07-22" "shadow\-utils 4\&.9" "系统管理命令" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -97,9 +97,11 @@ as the value for the user\*(Aqs login directory\&. The default is to append the \fILOGIN\fR name to \fIBASE_DIR\fR -and use that as the login directory name\&. The directory +and use that as the login directory name\&. If the directory \fIHOME_DIR\fR -does not have to exist but will not be created if it is missing\&. +does not exist, then it will be created unless the +\fB\-M\fR +option is specified\&. .RE .PP \fB\-D\fR, \fB\-\-defaults\fR @@ -134,7 +136,7 @@ variable in .PP \fB\-g\fR, \fB\-\-gid\fR\ \&\fIGROUP\fR .RS 4 -用户初始登陆组的组名或号码。组名必须已经存在。组号码必须指代已经存在的组。 +用户初始登录组的组名或号码。组名必须已经存在。组号码必须指代已经存在的组。 .sp If not specified, the behavior of \fBuseradd\fR @@ -164,7 +166,7 @@ option\&. The default is for the user to belong only to the initial group\&. .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 -现实帮助信息并退出。 +显示帮助信息并退出。 .RE .PP \fB\-k\fR, \fB\-\-skel\fR\ \&\fISKEL_DIR\fR @@ -222,6 +224,8 @@ option) will be copied to the home directory\&. By default, if this option is not specified and \fBCREATE_HOME\fR is not enabled, no home directories are created\&. +.sp +The directory where the user\*(Aqs home directory is created must exist and have proper SELinux context and permissions\&. Otherwise the user\*(Aqs home directory cannot be created or accessed\&. .RE .PP \fB\-M\fR, \fB\-\-no\-create\-home\fR @@ -351,7 +355,7 @@ variable in .PP \fB\-Z\fR, \fB\-\-selinux\-user\fR\ \&\fISEUSER\fR .RS 4 -用户登陆的 SELinux 用户。默认为留空,这会造成系统选择默认的 SELinux 用户。 +用户登录的 SELinux 用户。默认为留空,这会造成系统选择默认的 SELinux 用户。 .RE .SS "更改默认值" .PP @@ -539,7 +543,7 @@ Maximum members per group entry\&. When the maximum is reached, a new group entr .PP \fBPASS_MIN_DAYS\fR (number) .RS 4 -两次更改密码时间的最小间隔。将会拒绝任何早于此的更改密码的尝试。如果不指定,假定为 \-1,将会禁用这个限制。 +The minimum number of days allowed between password changes\&. Any password changes attempted sooner than this will be rejected\&. If not specified, 0 will be assumed (which disables the restriction)\&. .RE .PP \fBPASS_WARN_AGE\fR (number) @@ -693,6 +697,20 @@ will create by default a group with the name of the user\&. 账户创建的默认值。 .RE .PP +/etc/shadow\-maint/useradd\-pre\&.d/*, /etc/shadow\-maint/useradd\-post\&.d/* +.RS 4 +Run\-part files to execute during user addition\&. The environment variable +\fBACTION\fR +will be populated with useradd and +\fBSUBJECT\fR +with the +\fBusername\fR\&. +useradd\-pre\&.d +will be executed prior to any user addition\&. +useradd\-post\&.d +will execute after user addition\&. If a script exits non\-zero then execution will terminate\&. +.RE +.PP /etc/skel/ .RS 4 包含默认文件的目录。 |