Link to home
Create AccountLog in
Avatar of Jason Yu
Jason YuFlag for United States of America

asked on

How to change the login welcome message

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 ~]$
Avatar of Mazdajai
Mazdajai
Flag of United States of America image

You can find the path of your motd in ssh config -

grep -i banner /etc/ssh/sshd_config

Open in new window

Avatar of Jason Yu

ASKER

[root@elysium ~]# grep -i banner /etc/ssh/sshd_config
# no default banner path
#Banner /some/path
[root@elysium ~]#
Why you deleted your comment at 17:29?
The motd is located on the server, not the client.
loot at /etc/issue and /etc/issue.net
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
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
ASKER CERTIFIED SOLUTION
Avatar of Julian Parker
Julian Parker
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account