Linux : Changing the banner in linux Server using /etc/motd

Written by sathish. Posted in Linux

Hello explorers,  

In this post we are going to discuss how can we change the banner in the linux server using the file /etc/motd. Its nothing but  Acronym of Message Of The Day. By editing the file we can achieve the following. This file will be called after our successful authentication via ssh.

  cat of motd file     This can be Achieved by following manner,
  1.  First Locate the file /etc/motd.
  2.  Edit the file using your favourite editor. We will add some ASCII art and Do’s and Don’ts of the users.
  3.  Restart the ssh service to see the changes, A simple ssh restart is enough.
ssh restart   And finally, we can check by connecting to user via ssh.   motd file   Note :  
  1. We can add some blink effects and color effects to that file.
  2. We can have 7 files with different ASCII art, this file can replace /etc/motd file that can be done by crontab(a simple automated scripts). By this daily we will have different ASCII art.
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

Tags: , , ,

Leave a comment

Techlister© - 2012