For FTP server:
To change the greeting banner for vsftpd, add the following directive to the
/etc/vsftpd/vsftpd.conf file:
Quote:
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.example.com is logged.#
####################################################
For SMTP(if using postfix)
edit /etc/postfix/main.cf
Quote:
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:
SSH : Secure shell login greeting message:
Quote:
Edit file /etc/ssh/sshd_config
Edit/enable the line: Banner /etc/issue
Restart sshd: service sshd restart
|
GDM login message:
Quote:
Edit /etc/X11/gdm/gdm.conf as shown above. Configure "Welcome" option.
|