diff options
author | Karel Zak | 2011-10-05 13:30:52 +0200 |
---|---|---|
committer | Karel Zak | 2011-10-26 23:17:17 +0200 |
commit | 4d8fc09c27d178eb187544270eeeebb0cd16ab36 (patch) | |
tree | 2f02ae0550179bbb65b207a5469939385ac94c6e /login-utils/login.1 | |
parent | login: remove obsolete info from man page (diff) | |
download | kernel-qcow2-util-linux-4d8fc09c27d178eb187544270eeeebb0cd16ab36.tar.gz kernel-qcow2-util-linux-4d8fc09c27d178eb187544270eeeebb0cd16ab36.tar.xz kernel-qcow2-util-linux-4d8fc09c27d178eb187544270eeeebb0cd16ab36.zip |
login: rewrite motd(), use MOTD_FILE from login.defs
Note that Suse login(1) does not use any default for MOTD_FILE, so
MOTD_FILE item in login.defs is required otherwise nothing is printed.
We use (for backward compatibility) /etc/motd as default.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/login.1')
-rw-r--r-- | login-utils/login.1 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/login-utils/login.1 b/login-utils/login.1 index 50575cc22..8aba16f59 100644 --- a/login-utils/login.1 +++ b/login-utils/login.1 @@ -114,6 +114,26 @@ and .I /etc/pam.d/remote ). + +.SH CONFIG FILE ITEMS +.B login +reads the +.IR /etc/login.defs (5) +configuration file. Note that the configuration file could be distributed with +another package (e.g. shadow-utils). The following configuration items are +relevant for +.BR login (1): +.PP +\fBMOTD_FILE\fR (string) +.RS 4 +If defined, ":" delimited list of "message of the day" files to be displayed +upon login. The default value is "/etc/motd". If the \fBMOTD_FILE\fR item is +empty or "quiet" login is enabled then the message of the day is not displayed. +Note that the same functionality is also provided by +.BR pam_motd (8) +PAM module. +.RE + .SH FILES .nf .I /var/run/utmp |