जवाबों:
सभी MOTD संदेश कहां से आते हैं, इसके जवाब में, पहले PAM कॉन्फ़िगर देखें।
% grep -C1 motd /etc/pam.d/*
/etc/pam.d/sshd:session optional pam_motd.so motd=/run/motd.dynamic
देखना है कि pam_motd.so क्या चलता है।
% strings /lib/x86_64-linux-gnu/security/pam_motd.so
run-parts /etc/update-motd.d > /run/motd.dynamic.new
'रन-पार्ट्स' सभी लिपियों को क्रम में, एक निर्देशिका में चलाता है।
% ls /etc/update-motd.d/
00-header* 80-esm* 91-release-upgrade* 98-reboot-required*
10-help-text* 80-livepatch* 95-hwe-eol*
50-motd-news* 90-updates-available* 98-fsck-at-reboot*
हेल्पर स्क्रिप्ट / usr / lib / update-notifier / update-motd * में हैं
/usr/lib/update-notifier/update-motd-fsck-at-reboot*
/usr/lib/update-notifier/update-motd-hwe-eol*
/usr/lib/update-notifier/update-motd-reboot-required*
/usr/lib/update-notifier/update-motd-updates-available*
डेटा फ़ाइलें / var / lib / update-notifier में हैं
dpkg-run-stamp hwe-eol updates-available
fsck-at-reboot package-data-downloads/ user.d/
कमांड लाइन से MOTD जानकारी का उत्पादन करने के लिए, या तो
$ ssh localhost
या
# run-parts /etc/update-motd.d