Display a legal warning before login.

For FTP server:

To change the greeting banner for vsftpd, add the following directive to the /etc/vsftpd/vsftpd.conf file:

ftpd_banner=<insert_greeting_here>

Replace <insert_greeting_here> in the above directive with the text of the greeting message.

For mutli-line banners, it is best to use a banner file. To simplify management of multiple banners, place all banners in a new directory called /etc/banners/. The banner file for FTP connections in this example is /etc/banners/ftp.msg. Below is an example of what such a file may look like:

####################################################
# Hello, all activity on ftp.asgaur.com is logged.#
####################################################

For SMTP(if using postfix)

edit /etc/postfix/main.cf

smtpd_banner = $myhostname ESMTP $mail_namen
n System Info: This is a Postfix mail servern . running a multiline SMTP greeting patchn
n Please don’t send me SPAM here – we don’t like it

For SMTP(if using sendmail)

define(`confSMTP_LOGIN_MSG’, `somehost.com n System is being Monitored’)dnl

Telnet greeting message:

Edit file /etc/issue

SSH : Secure shell login greeting message:

Edit file /etc/ssh/sshd_config
Edit/enable the line: Banner /etc/issue
Restart sshd: service sshd restart

GDM login message:

Edit /etc/X11/gdm/gdm.conf as shown above. Configure “Welcome” option.

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.