summaryrefslogtreecommitdiff
path: root/man/zh_CN/man1/login.1
diff options
context:
space:
mode:
Diffstat (limited to 'man/zh_CN/man1/login.1')
-rw-r--r--man/zh_CN/man1/login.1284
1 files changed, 4 insertions, 280 deletions
diff --git a/man/zh_CN/man1/login.1 b/man/zh_CN/man1/login.1
index ffbe1164..8baabb7e 100644
--- a/man/zh_CN/man1/login.1
+++ b/man/zh_CN/man1/login.1
@@ -1,13 +1,13 @@
'\" t
.\" Title: login
.\" Author: Julianne Frances Haugh
-.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 2022-01-02
+.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
+.\" Date: 2022-08-18
.\" Manual: 用户命令
-.\" Source: shadow-utils 4.11.1
+.\" Source: shadow-utils 4.12.2
.\" Language: Chinese Simplified
.\"
-.TH "LOGIN" "1" "2022-01-02" "shadow\-utils 4\&.11\&.1" "用户命令"
+.TH "LOGIN" "1" "2022-08-18" "shadow\-utils 4\&.12\&.2" "用户命令"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -154,282 +154,6 @@ As with any program,
The following configuration variables in
/etc/login\&.defs
change the behavior of this tool:
-.PP
-\fBCONSOLE\fR (string)
-.RS 4
-如果定义了,或者是包含设备名(没行一个)的文件的完整路径名,或者是\(lq:\(rq分隔的设备名列表。将只会在这写设备上允许 root 登录。
-.sp
-如果没有定义,可以在任何设备上使用 root。
-.sp
-指定的设备时不带 /dev/ 前缀。
-.RE
-.PP
-\fBCONSOLE_GROUPS\fR (string)
-.RS 4
-List of groups to add to the user\*(Aqs supplementary groups set when logging in on the console (as determined by the CONSOLE setting)\&. Default is none\&.
-
-Use with caution \- it is possible for users to gain permanent access to these groups, even when not logged in on the console\&.
-.RE
-.PP
-\fBDEFAULT_HOME\fR (boolean)
-.RS 4
-如果不能 cd 到主目录时,说明是否允许登录。默认是否。
-.sp
-If set to
-\fIyes\fR, the user will login in the root (/) directory if it is not possible to cd to her home directory\&.
-.RE
-.PP
-\fBENV_HZ\fR (string)
-.RS 4
-If set, it will be used to define the HZ environment variable when a user login\&. The value must be preceded by
-\fIHZ=\fR\&. A common value on Linux is
-\fIHZ=100\fR\&.
-.RE
-.PP
-\fBENV_PATH\fR (string)
-.RS 4
-If set, it will be used to define the PATH environment variable when a regular user login\&. The value is a colon separated list of paths (for example
-\fI/bin:/usr/bin\fR) and can be preceded by
-\fIPATH=\fR\&. The default value is
-\fIPATH=/bin:/usr/bin\fR\&.
-.RE
-.PP
-\fBENV_SUPATH\fR (string)
-.RS 4
-If set, it will be used to define the PATH environment variable when the superuser login\&. The value is a colon separated list of paths (for example
-\fI/sbin:/bin:/usr/sbin:/usr/bin\fR) and can be preceded by
-\fIPATH=\fR\&. The default value is
-\fIPATH=/sbin:/bin:/usr/sbin:/usr/bin\fR\&.
-.RE
-.PP
-\fBENV_TZ\fR (string)
-.RS 4
-If set, it will be used to define the TZ environment variable when a user login\&. The value can be the name of a timezone preceded by
-\fITZ=\fR
-(for example
-\fITZ=CST6CDT\fR), or the full path to the file containing the timezone specification (for example
-/etc/tzname)\&.
-.sp
-If a full path is specified but the file does not exist or cannot be read, the default is to use
-\fITZ=CST6CDT\fR\&.
-.RE
-.PP
-\fBENVIRON_FILE\fR (string)
-.RS 4
-如果此文件存在,并且可读,将会从中读取登录环境。所有行都必须是 name=value 的格式。
-.sp
-以 # 开头的行将视为注释,并被忽略。
-.RE
-.PP
-\fBERASECHAR\fR (number)
-.RS 4
-Terminal ERASE character (\fI010\fR
-= backspace,
-\fI0177\fR
-= DEL)\&.
-.sp
-此值可以使用前缀\(lq0\(rq表示八进制,\(lq0x\(rq表示十六进制。
-.RE
-.PP
-\fBFAIL_DELAY\fR (number)
-.RS 4
-登录失败后,等待多少秒才再允许登录。
-.RE
-.PP
-\fBFAILLOG_ENAB\fR (boolean)
-.RS 4
-Enable logging and display of
-/var/log/faillog
-login failure info\&.
-.RE
-.PP
-\fBFAKE_SHELL\fR (string)
-.RS 4
-If set,
-\fBlogin\fR
-will execute this shell instead of the users\*(Aq shell specified in
-/etc/passwd\&.
-.RE
-.PP
-\fBFTMP_FILE\fR (string)
-.RS 4
-如果定义,登录失败会以 utmp 格式记录在此文件中。
-.RE
-.PP
-\fBHUSHLOGIN_FILE\fR (string)
-.RS 4
-If defined, this file can inhibit all the usual chatter during the login sequence\&. If a full pathname is specified, then hushed mode will be enabled if the user\*(Aqs name or shell are found in the file\&. If not a full pathname, then hushed mode will be enabled if the file exists in the user\*(Aqs home directory\&.
-.RE
-.PP
-\fBISSUE_FILE\fR (string)
-.RS 4
-如果定义了,此文件将在每次的登录提示之前显示。
-.RE
-.PP
-\fBKILLCHAR\fR (number)
-.RS 4
-Terminal KILL character (\fI025\fR
-= CTRL/U)\&.
-.sp
-此值可以使用前缀\(lq0\(rq表示八进制,\(lq0x\(rq表示十六进制。
-.RE
-.PP
-\fBLASTLOG_ENAB\fR (boolean)
-.RS 4
-允许记录和显示 /var/log/lastlog 登录时间信息。
-.RE
-.PP
-\fBLOGIN_RETRIES\fR (number)
-.RS 4
-密码错误时,重试的最大次数。
-.RE
-.PP
-\fBLOGIN_STRING\fR (string)
-.RS 4
-此字符串用于提示输入密码。默认是 "Password: ",或者翻译了的结果(汉语中翻译为了\(lq密码:\(rq)。如果设置了此变量,提示不会被翻译。
-.sp
-If the string contains
-\fI%s\fR, this will be replaced by the user\*(Aqs name\&.
-.RE
-.PP
-\fBLOGIN_TIMEOUT\fR (number)
-.RS 4
-最大登录时间(以秒为单位)。
-.RE
-.PP
-\fBLOG_OK_LOGINS\fR (boolean)
-.RS 4
-允许记录成功登录。
-.RE
-.PP
-\fBLOG_UNKFAIL_ENAB\fR (boolean)
-.RS 4
-在记录到登录失败时,允许记录未知用户名。
-.sp
-注意:如果用户不小心将密码输入到了登录名中,记录未知用户名可能是一个安全隐患。
-.RE
-.PP
-\fBMAIL_CHECK_ENAB\fR (boolean)
-.RS 4
-启用登录时检查和显示邮箱状态。
-.sp
-如果 shell 的启动文件已经检查了邮件("mailx \-e" 或者其它同功能的工具),您应该禁用它。
-.RE
-.PP
-\fBMAIL_DIR\fR (string)
-.RS 4
-The mail spool directory\&. This is needed to manipulate the mailbox when its corresponding user account is modified or deleted\&. If not specified, a compile\-time default is used\&. The parameter CREATE_MAIL_SPOOL in
-/etc/default/useradd
-determines whether the mail spool should be created\&.
-.RE
-.PP
-\fBMAIL_FILE\fR (string)
-.RS 4
-定义用户邮箱文件的位置(相对于主目录)。
-.RE
-.PP
-The
-\fBMAIL_DIR\fR
-and
-\fBMAIL_FILE\fR
-variables are used by
-\fBuseradd\fR,
-\fBusermod\fR, and
-\fBuserdel\fR
-to create, move, or delete the user\*(Aqs mail spool\&.
-.PP
-If
-\fBMAIL_CHECK_ENAB\fR
-is set to
-\fIyes\fR, they are also used to define the
-\fBMAIL\fR
-environment variable\&.
-.PP
-\fBMOTD_FILE\fR (string)
-.RS 4
-If defined, ":" delimited list of "message of the day" files to be displayed upon login\&.
-.RE
-.PP
-\fBNOLOGINS_FILE\fR (string)
-.RS 4
-If defined, name of file whose presence will inhibit non\-root logins\&. The contents of this file should be a message indicating why logins are inhibited\&.
-.RE
-.PP
-\fBPORTTIME_CHECKS_ENAB\fR (boolean)
-.RS 4
-Enable checking of time restrictions specified in
-/etc/porttime\&.
-.RE
-.PP
-\fBQUOTAS_ENAB\fR (boolean)
-.RS 4
-Enable setting of resource limits from
-/etc/limits
-and ulimit, umask, and niceness from the user\*(Aqs passwd gecos field\&.
-.RE
-.PP
-\fBTTYGROUP\fR (string), \fBTTYPERM\fR (string)
-.RS 4
-The terminal permissions: the login tty will be owned by the
-\fBTTYGROUP\fR
-group, and the permissions will be set to
-\fBTTYPERM\fR\&.
-.sp
-By default, the ownership of the terminal is set to the user\*(Aqs primary group and the permissions are set to
-\fI0600\fR\&.
-.sp
-\fBTTYGROUP\fR
-can be either the name of a group or a numeric group identifier\&.
-.sp
-If you have a
-\fBwrite\fR
-program which is "setgid" to a special group which owns the terminals, define TTYGROUP to the group number and TTYPERM to 0620\&. Otherwise leave TTYGROUP commented out and assign TTYPERM to either 622 or 600\&.
-.RE
-.PP
-\fBTTYTYPE_FILE\fR (string)
-.RS 4
-If defined, file which maps tty line to TERM environment parameter\&. Each line of the file is in a format something like "vt100 tty01"\&.
-.RE
-.PP
-\fBULIMIT\fR (number)
-.RS 4
-Default
-\fBulimit\fR
-value\&.
-.RE
-.PP
-\fBUMASK\fR (number)
-.RS 4
-文件模式创建掩码初始化为此值。如果没有指定,掩码初始化为 022。
-.sp
-\fBuseradd\fR
-and
-\fBnewusers\fR
-use this mask to set the mode of the home directory they create if
-\fBHOME_MODE\fR
-is not set\&.
-.sp
-It is also used by
-\fBlogin\fR
-to define users\*(Aq initial umask\&. Note that this mask can be overridden by the user\*(Aqs GECOS line (if
-\fBQUOTAS_ENAB\fR
-is set) or by the specification of a limit with the
-\fIK\fR
-identifier in
-\fBlimits\fR(5)\&.
-.RE
-.PP
-\fBUSERGROUPS_ENAB\fR (boolean)
-.RS 4
-如果 uid 和 gid 相同,用户名和主用户名也相同,使非 root 组的组掩码位和属主位相同 (如:022 \-> 002, 077 \-> 007)。
-.sp
-If set to
-\fIyes\fR,
-\fBuserdel\fR
-will remove the user\*(Aqs group if it contains no more members, and
-\fBuseradd\fR
-will create by default a group with the name of the user\&.
-.RE
.SH "文件"
.PP
/var/run/utmp