diff options
author | Karel Zak | 2017-12-04 12:31:29 +0100 |
---|---|---|
committer | Karel Zak | 2017-12-04 12:31:29 +0100 |
commit | e6b32e7d1adf2a0c09743d71dfdbe2742c5884ac (patch) | |
tree | e631579086849fb00cfbafb24c57b358610c3a3f /login-utils/login.1 | |
parent | fallocate: remove typo (diff) | |
download | kernel-qcow2-util-linux-e6b32e7d1adf2a0c09743d71dfdbe2742c5884ac.tar.gz kernel-qcow2-util-linux-e6b32e7d1adf2a0c09743d71dfdbe2742c5884ac.tar.xz kernel-qcow2-util-linux-e6b32e7d1adf2a0c09743d71dfdbe2742c5884ac.zip |
login: add LOGIN_PLAIN_PROMPT to login.defs
We have command line option -H to disable hostname in login prompt.
Unfortunately, in same cases (e.g. telnetd) it's impossible to specify
login(1) command line options due to hardcoded execl()...
This patch introduces LOGIN_PLAIN_PROMPT boolean for /etc/login.defs
to suppress hostname in the prompt.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/login.1')
-rw-r--r-- | login-utils/login.1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/login-utils/login.1 b/login-utils/login.1 index 5d43fdcdd..9e4697b12 100644 --- a/login-utils/login.1 +++ b/login-utils/login.1 @@ -130,6 +130,9 @@ Used by other servers (i.e., to tell .B login that printing the hostname should be suppressed in the login: prompt. +See also LOGIN_PLAIN_PROMPT below if your server does not allow to configure +.B login +command line. .TP \fB\-\-help\fR Display help text and exit. @@ -160,6 +163,15 @@ by PAM module. .RE .PP +.B LOGIN_PLAIN_PROMPT +(boolean) +.RS 4 +Tell login that printing the hostname should be suppressed in the login: +prompt. This is alternative to the \fB\-H\fR command line option. The default +value is +.IR no . +.RE +.PP .B LOGIN_TIMEOUT (number) .RS 4 |