Changing motd on Ubuntu

Here's a quick tutorial for sysadmins who want to customize their welcome banner in Ubuntu.

Connect to your box:
ssh -l login host -p port

sudo up to a super user
sudo su -

and change to the /etc directory
cd /etc

use vi, pico or nano to edit the following to files: motd.tail and motd
nano -w motd.tail

Change the banner to whatever you want.

Save the documents, and this should now be live.
Exit out of the current account and log out of the session

Test it by ssh-ing back into the box.

The .tail edit is required to it doesn't reset after reboot as the .tail overwrites the motd file.

Have fun, be creative!

(click the image for a larger version)

Next Article: ReTweeting