sarathonline.com/blog | Trouble viewing this page? Give Feedback .
Try my blog on: Ajax Version
Search

Wednesday, March 03, 2010

Linux/Unix welcome messages

There are instances where you want to display a message in shell before/after terminal login in Linux or Unix. There are however many ways Unix/Linux lets you customize this.

/etc/issue
This is a text file, contents of which are displayed at the login prompt.


 
/etc/motd
Also called message of the day. You can add some text to motd and it will be displayed after successful login

Only ssh Users
Some times you want to display a welcome message only to ssh logins. To achieve this,
You create a file somewhere on the file system – say /etc/ssh/sshd_welcome
Add or edit the line Banner /etc/ssh/sshd_welcome in /etc/ssh/sshd_config

0 comments:

Post a Comment

© SarathOnline.com 2000-'11