We
can add our system warning/logging banner/message by editing /etc/motd file. This
message will appear once after we are logging in to system using
Telnet/SSh/..etc. methord. (displayed after login)
# vi /etc/motd
"/etc/motd"
1 line, 57 characters
#########################################################################
# ----Sri Lanka XXXX PVT. LTD.----
# This system is for
the use of authorized users only.
# Individuals using
this computer system without authority, or
# in excess of their
authority, are subject to having all of
# activities on this system
monitored and recorded by system personnel.
#########################################################################
Eg:
login as: dara
Using keyboard-interactive
authentication.
Password:
Access denied
Using
keyboard-interactive authentication.
Password:
Last login: Wed Mar 12
11:43:09 2014 from 172.16.0.6
#########################################################################
# ----Sri Lanka XXXX PVT. LTD.----
# This system is for
the use of authorized users only.
# Individuals using
this computer system without authority, or
# in excess of their
authority, are subject to having all of
# activities on this system
monitored and recorded by system personnel.
#########################################################################
-bash-3.00$
For telnet we can place a banner to display while
trying to access server by editing /etc/default/telnetd file.
# vi /etc/default/telnetd
"/etc/default/telnetd"
[Read only] 20 lines, 652 characters
#ident "@(#)telnetd.dfl 1.1
01/11/01 SMI"
#
# Copyright (c) 2001
by Sun Microsystems, Inc.
# All rights reserved.
#
# /etc/default/telnetd
#
# telnetd default
settings processed via telnetd(1M).
#
# BANNER defines the
connection banner which is displayed before the
# telnet login prompt,
see telnetd(1M) for details. The
following
# commented line shows
the default value.
#
#BANNER="\\r\\n\\r\\n`uname
-s` `uname -r`\\r\\n\\r\\n"
#
#
# Suppress the telnet
banner by supplying a null definition.
#
BANNER="**********************Warning************************\\r\\n\\r\\n
uthorized uses only.All activity may be monitored and
reported\\r\\n\\r\\n"
For SSH:
# vi /etc/ssh/sshd_config
.
.
.
# Banner to be printed
before authentication starts.
Banner /etc/issue
.
.
.
Eg:
>telnet 172.16.0.4
**********************Warning************************
uthorized uses only.All activity may be monitored and reported
login: