]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - login-utils/login.1
login: add support for directories in MOTD_FILE=
[thirdparty/util-linux.git] / login-utils / login.1
index 29fe1b7a6763aedf5a71b5378675fb5a30319ed8..1e2d3cb28990c60b080449e31eb111d9deb1feb1 100644 (file)
@@ -151,9 +151,12 @@ configuration items are relevant for
 .B MOTD_FILE
 (string)
 .RS 4
-If defined, a ":" delimited list of "message of the day" files to be
-displayed upon login.  The default value is
-.IR /etc\:/motd .
+Sepecifies a ":" delimited list of "message of the day" files and directories
+to be displayed upon login.  If the specified path is a directory then displays
+all files with .motd file extension in version-sort order from the directory.
+.PP
+The default value is
+.IR "/usr/share/misc/motd:/run/motd:/run/motd.d:/etc/motd:/etc/motd.d" .
 If the
 .B MOTD_FILE
 item is empty or a quiet login is enabled, then the message of the day
@@ -161,6 +164,10 @@ is not displayed.  Note that the same functionality is also provided
 by
 .BR pam_motd (8)
 PAM module.
+.PP
+The directories in the
+.B MOTD_FILE
+are supported since version 2.36.
 .RE
 .PP
 .B LOGIN_PLAIN_PROMPT