{"id":3732,"date":"2022-12-20T17:19:53","date_gmt":"2022-12-20T20:19:53","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pam_motd-man8\/"},"modified":"2022-12-20T17:19:53","modified_gmt":"2022-12-20T20:19:53","slug":"pam_motd-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pam_motd-man8\/","title":{"rendered":"PAM_MOTD (man8)"},"content":{"rendered":"<h1 align=\"center\">PAM_MOTD<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#MODULE TYPES PROVIDED\">MODULE TYPES PROVIDED<\/a><br \/> <a href=\"#RETURN VALUES\">RETURN VALUES<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_motd \u2212 Display the motd file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"89%\">\n<p style=\"margin-top: 1em\"><b>pam_motd.so<\/b> [motd=<i>\/path\/filename<\/i>] [motd_dir=<i>\/path\/dirname.d<\/i>]<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_motd is a PAM module that can be used to display arbitrary motd (message of the day) files after a successful login. By default, pam_motd shows files in the following locations:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\/etc\/motd <br \/> \/run\/motd <br \/> \/usr\/lib\/motd <br \/> \/etc\/motd.d\/ <br \/> \/run\/motd.d\/ <br \/> \/usr\/lib\/motd.d\/<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Each message size is limited to 64KB.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If \/etc\/motd does not exist, then \/run\/motd is shown. If \/run\/motd does not exist, then \/usr\/lib\/motd is shown.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Similar overriding behavior applies to the directories. Files in \/etc\/motd.d\/ override files with the same name in \/run\/motd.d\/ and \/usr\/lib\/motd.d\/. Files in \/run\/motd.d\/ override files with the same name in \/usr\/lib\/motd.d\/.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Files in the directories listed above are displayed in lexicographic order by name. Moreover, the files are filtered by reading them with the credentials of the target user authenticating on the system.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To silence a message, a symbolic link with target \/dev\/null may be placed in \/etc\/motd.d with the same filename as the message to be silenced. Example: Creating a symbolic link as follows silences \/usr\/lib\/motd.d\/my_motd.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ln \u2212s \/dev\/null \/etc\/motd.d\/my_motd<\/b><\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>motd=<\/b><i>\/path\/filename<\/i><\/p>\n<p style=\"margin-left:17%;\">The \/path\/filename file is displayed as message of the day. Multiple paths to try can be specified as a colon\u2212separated list. By default this option is set to \/etc\/motd:\/run\/motd:\/usr\/lib\/motd.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>motd_dir=<\/b><i>\/path\/dirname.d<\/i><\/p>\n<p style=\"margin-left:17%;\">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\u2212separated list. By default this option is set to \/etc\/motd.d:\/run\/motd.d:\/usr\/lib\/motd.d.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">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.<\/p>\n<h2>MODULE TYPES PROVIDED <a name=\"MODULE TYPES PROVIDED\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Only the <b>session<\/b> module type is provided.<\/p>\n<h2>RETURN VALUES <a name=\"RETURN VALUES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_IGNORE<\/p>\n<p style=\"margin-left:17%;\">This is the only return value of this module.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The suggested usage for \/etc\/pam.d\/login is:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">session optional pam_motd.so<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To use a motd file from a different location:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">session optional pam_motd.so motd=\/elsewhere\/motd<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To use a motd file from elsewhere, along with a corresponding .d directory:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">session optional pam_motd.so motd=\/elsewhere\/motd motd_dir=\/elsewhere\/motd.d<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>motd<\/b>(5), <b>pam.conf<\/b>(5), <b>pam.d<\/b>(5), <b>pam<\/b>(8)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_motd was written by Ben Collins <bcollins@debian.org>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>motd_dir=<\/b> option was added by Allison Karlitskaya <allison.karlitskaya@redhat.com>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  pam_motd \u2212 Display the motd file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,840],"class_list":["post-3732","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-pam_motd"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3732"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3732\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}