Solved

How to change the login welcome message

Posted on 2013-05-20
8
479 Views
Last Modified: 2013-05-27
Hi, all:

If I want to modify the welcome message displayed when I logged into the system, which file do I need modify? Thanks.

Connection to poseidon closed.
[oracle@elysium .ssh]$ ssh tartarus
Last login: Mon May 20 15:05:42 2013 from elysium.minkagroup.net

##############################################################
#                                                            #
#               Welcome to the Minka Group                   #
#                                                            #
##############################################################



                  Tartarus RAC Database Server





[oracle@tartarus ~]$
0
Comment
Question by:Jason Yu
  • 3
  • 3
  • 2
8 Comments
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39182817
You can find the path of your motd in ssh config -

grep -i banner /etc/ssh/sshd_config

Open in new window

0
 

Author Comment

by:Jason Yu
ID: 39182849
[root@elysium ~]# grep -i banner /etc/ssh/sshd_config
# no default banner path
#Banner /some/path
[root@elysium ~]#
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39182908
Why you deleted your comment at 17:29?
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39182911
The motd is located on the server, not the client.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 19

Expert Comment

by:jools
ID: 39183859
loot at /etc/issue and /etc/issue.net
0
 

Author Comment

by:Jason Yu
ID: 39185672
Got it solved, thank you guys. Googled "motd"!

The abbreviation "motd" stands for "message of the day", and this file has been traditionally used for exactly that (it requires much less disk space than mail to all users). To change what your current message reads, you need to edit /etc/motd file. Now whenever your users login, they will be see whatever you have placed in this file.

The message of the day can be used to communicate important information about your
server to end users, or to remind users something important.

To change what your current message, you need to edit /etc/motd file using text editor such as vi. For example display following messge to all users:

# vi /etc/motd

Add following sample message to it (remove existing message):

All your actions are being logged for security purposes. If you have any question please
0
 

Author Comment

by:Jason Yu
ID: 39185685
What are these two files for?



loot at /etc/issue and /etc/issue.net

-------------------------------------

I got the OS version infor for running these two commands:

Oracle Linux Server release 5.6
Kernel \r on an \m

Oracle Linux Server release 5.6
Kernel \r on an \m
0
 
LVL 19

Accepted Solution

by:
jools earned 500 total points
ID: 39185789
The issue files are the banners (usually) for logins, you get motd only when you have logged into the server.

So, in your example, you would get;
Oracle Linux Server release 5.6
Kernel \r on an \m

Login:

Open in new window


Displayed when you logged in where \r is release and \m is model (I think).

you would only get the motd displayed after the user logged in and again only if  they have a tty session, most servers I've seen users get forced into an application or menu of some sort.

This setup is of course customisable but it is how it works in a default setup.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now