Linux/Ubuntu2011. 12. 11. 17:01
/etc/motd 를 통해 로그인 시에 메시지가 출력되는데
업데이트 하는 방법은 update-motd 라는 명령어를 이용하는데
문제는(?) 이 motd 파일이 언제 업제이트 되는지 라는 것.
아무리 뒤져봐도 영 안보이는데 어디서 어떻게 업데이트 되는거니~ -_-

$ sudo grep -rni "motd" /etc
/etc/update-motd.d/90-updates-available:3:exec /usr/lib/update-notifier/update-motd-updates-available
/etc/update-motd.d/98-reboot-required:3:exec /usr/lib/update-notifier/update-motd-reboot-required
/etc/update-motd.d/99-footer:3:# motd.tail is reserved for the admin to append static
/etc/update-motd.d/99-footer:5:# /etc/motd.
/etc/update-motd.d/99-footer:8:# script to /etc/update-motd.d/
/etc/update-motd.d/99-footer:10:[ -f /etc/motd.tail ] && cat /etc/motd.tail || true
/etc/update-motd.d/20-cpu-checker:3:exec /usr/lib/update-notifier/update-motd-cpu-checker
/etc/update-motd.d/91-release-upgrade:3:exec /usr/lib/update-manager/release-upgrade-motd
/etc/pam.d/sshd:27:session    optional     pam_motd.so # [1]
/etc/pam.d/login:72:# Prints the motd upon succesful login
/etc/pam.d/login:73:# (Replaces the `MOTD_FILE' option in login.defs)
/etc/pam.d/login:74:session    optional   pam_motd.so
/etc/login.defs:312:#MOTD_FILE
/etc/ssh/sshd_config:64:PrintMotd no
/etc/apparmor/severity.db:128:/etc/motd 1 3 0 

$ ll /etc/update-motd.d/
total 44
drwxr-xr-x   2 root root  4096 2011-12-11 15:08 ./
drwxr-xr-x 130 root root 12288 2011-12-11 16:41 ../
-rwxr-xr-x   1 root root    57 2010-04-23 18:45 00-header*
-rwxr-xr-x   1 root root   248 2010-04-23 18:45 10-help-text*
-rwxr-xr-x   1 root root    65 2010-04-14 05:45 20-cpu-checker*
lrwxrwxrwx   1 root root    46 2011-12-11 15:08 50-landscape-sysinfo -> /usr/share/landscape/landscape-sysinfo.wrapper*
-rwxr-xr-x   1 root root    71 2010-04-14 05:45 90-updates-available*
-rwxr-xr-x   1 root root    61 2010-10-13 16:40 91-release-upgrade*
-rwxr-xr-x   1 root root    69 2010-04-14 05:45 98-reboot-required*
-rwxr-xr-x   1 root root   261 2010-04-23 18:45 99-footer* 

[링크 : http://www.ubuntu.or.kr/viewtopic.php?p=1070]
[링크 : http://www.ubuntugeek.com/how-to-change-message-of-the-day-motd-in-ubuntu-server.html]
Posted by 구차니