john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Linux login message banner issue motd

linux-login-message-banner-issue-motd

nano /etc/issue

nano /etc/motd

UBUNTU DEFAULT

sudo aptitude install update-motd

update-motd package creates a directory, /etc/update-motd.d installs a cronjob, /etc/cron.d/update-motd which calls /usr/sbin/update-motd every 10 minutes (by default)

You can add a dynamic script

chmod +x /etc/update-motd.d/11-mystats

You can edit to comment out items from /etc/update-motd.d/ to show less...

(The motd job can be called/run manually with /usr/bin/update-motd ?)

/etc/ssh/sshd_config (contains PrintLastLog no which can be uncommented to prevent "lastlogin")


  • « ruby nginx unicorn
  • wss 3 custom fixed width columns in a list »

Published

Feb 9, 2011

Category

linux

~70 words

Tags

  • banner 1
  • issue 1
  • linux 249
  • login 11
  • message 1
  • motd 1