The /path/filename file is displayed
as message of the day. Multiple paths to try can be
specified as a colon-separated list. By default this option
is set to /etc/motd:/run/motd:/usr/lib/motd.
The /path/dirname.d directory is scanned
and each file contained inside of it is displayed. Multiple
directories to scan can be specified as a colon-separated list.
By default this option is set to /etc/motd.d:/run/motd.d:/usr/lib/motd.d.
When no options are given, the default behavior applies for both options. Specifying either option (or both) will disable the default behavior for both options.
Not all relevant data or options could be obtained.
Memory buffer error.
This is the default return value of this module.
The suggested usage for /etc/pam.d/login is:
session optional pam_motd.so
To use a motd file from a different location:
session optional pam_motd.so motd=/elsewhere/motd
To use a motd file from elsewhere, along with a
corresponding .d directory:
session optional pam_motd.so motd=/elsewhere/motd motd_dir=/elsewhere/motd.d