summaryrefslogtreecommitdiffstats
path: root/man/zh_CN/man8/useradd.8
diff options
context:
space:
mode:
Diffstat (limited to 'man/zh_CN/man8/useradd.8')
-rw-r--r--man/zh_CN/man8/useradd.838
1 files changed, 29 insertions, 9 deletions
diff --git a/man/zh_CN/man8/useradd.8 b/man/zh_CN/man8/useradd.8
index 580372e..1739175 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 vsnapshot <http://docbook.sf.net/>
-.\" Date: 2022-11-08
-.\" Manual: 系统管理命令
-.\" Source: shadow-utils 4.13
+.\" Date: 2024-06-21
+.\" Manual: System Management Commands
+.\" Source: shadow-utils 4.15.2
.\" Language: Chinese Simplified
.\"
-.TH "USERADD" "8" "2022-11-08" "shadow\-utils 4\&.13" "系统管理命令"
+.TH "USERADD" "8" "2024-06-21" "shadow\-utils 4\&.15\&.2" "System Management Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -31,11 +31,11 @@
useradd \- 创建一个新用户或更新默认新用户信息
.SH "大纲"
.HP \w'\fBuseradd\fR\ 'u
-\fBuseradd\fR [\fI选项\fR] \fI登录\fR
+\fBuseradd\fR [\fIoptions\fR] \fILOGIN\fR
.HP \w'\fBuseradd\fR\ 'u
\fBuseradd\fR \-D
.HP \w'\fBuseradd\fR\ 'u
-\fBuseradd\fR \-D [\fI选项\fR]
+\fBuseradd\fR \-D [\fIoptions\fR]
.SH "描述"
.PP
When invoked without the
@@ -169,7 +169,11 @@ variable in
.RS 4
A list of supplementary groups which the user is also a member of\&. Each group is separated from the next by a comma, with no intervening whitespace\&. The groups are subject to the same restrictions as the group given with the
\fB\-g\fR
-option\&. The default is for the user to belong only to the initial group\&.
+option\&. The default is for the user to belong only to the initial group\&. In addition to passing in the \-G flag, you can add the option
+\fBGROUPS\fR
+to the file
+/etc/default/useradd
+which in turn will add all users to those supplementary groups\&.
.RE
.PP
\fB\-h\fR, \fB\-\-help\fR
@@ -194,6 +198,10 @@ variable in
or, by default,
/etc/skel\&.
.sp
+Absolute symlinks that link back to the skel directory will have the
+/etc/skel
+prefix replaced with the user\*(Aqs home directory\&.
+.sp
如果可以,也复制 ACL 和扩展属性。
.RE
.PP
@@ -380,9 +388,21 @@ variable in
.PP
\fB\-Z\fR, \fB\-\-selinux\-user\fR\ \&\fISEUSER\fR
.RS 4
-defines the SELinux user for the new account\&. Without this option, a SELinux uses the default user\&. Note that the shadow system doesn\*(Aqt store the selinux\-user, it uses
+defines the SELinux user for the new account\&. Without this option, SELinux uses the default user\&. Note that the shadow system doesn\*(Aqt store the selinux\-user, it uses
+\fBsemanage\fR(8)
+for that\&.
+.RE
+.PP
+\fB\-\-selinux\-range\fR\ \&\fISERANGE\fR
+.RS 4
+defines the SELinux MLS range for the new account\&. Without this option, SELinux uses the default range\&. Note that the shadow system doesn\*(Aqt store the selinux\-range, it uses
\fBsemanage\fR(8)
for that\&.
+.sp
+This option is only valid if the
+\fB\-Z\fR
+(or
+\fB\-\-selinux\-user\fR) option is specified\&.
.RE
.SS "更改默认值"
.PP
@@ -469,7 +489,7 @@ Usernames may contain only lower and upper case letters, digits, underscores, or
\fBls\fR
output\&.
.PP
-用户名不能超过 32 个字符长。
+用户名不能超过 256 个字符长。
.SH "配置文件"
.PP
The following configuration variables in