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_name\n
\n System Info: This is a Postfix mail server\n . running a multiline SMTP greeting patch\n
\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.

Incoming search terms:

  • multiline smtp greeting
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

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

*


one − 1 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>