BSDwiki/ Modify the system banner

Modify the system banner

Author: KevinDKinsey

Reviewer: name contact BSD flavour

Reviewer: name contact BSD flavour


Concept

Be aware of the banner(s) that may be seen depending on how a user accesses a system and which files are used to configure each banner.

Introduction

Various banners and welcome messages are available to introduce a BSD system and to possibly share news, system policies, or important announcements. Among these are:

TODO: telnetd uses standard login??

Examples

Gettytab's "banner":

NetBSD/i386 (foo.example.com)  (ttyv0)

login:

The first part of the "stock" FreeBSD MOTD:

Welcome to FreeBSD!

Before seeking technical support, please use the following resources:

o  Security advisories and updated errata information for all releases are
  at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
  for your release first as it's updated frequently.

o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
  along with the mailing lists, can be searched by going to
  http://www.FreeBSD.org/search/.  If the doc distribution has
  been installed, they're also available formatted in /usr/share/doc.

A sample ssh login, displaying a banner (of the "warning" type):

$ ssh me@somehost

 * * * * * * * * * * * W A R N I N G * * * * * * * * * * * * *
THIS SYSTEM IS RESTRICTED TO AUTHORIZED USERS FOR AUTHORIZED USE
ONLY. UNAUTHORIZED ACCESS IS STRICTLY PROHIBITED AND MAY BE 
PUNISHABLE UNDER THE COMPUTER FRAUD AND ABUSE ACT OF 1986 OR OTHER APPLICABLE LAWS. IF NOT AUTHORIZED TO ACCESS THIS SYSTEM, DISCONNECT NOW. BY CONTINUING, YOU CONSENT TO YOUR KEYSTROKES AND DATA CONTENT BEING MONITORED. ALL PERSONS ARE HEREBY
NOTIFIED THAT THE USE OF THIS SYSTEM CONSTITUTES CONSENT TO MONITORING AND AUDITING. Password:

After logging in and the display of the MOTD, FreeBSD systems often display a "tip":

To erase a line you've written at the command prompt, use "Ctrl-U".
               -- Dru genesis@istar.ca

Practice Exercises

  1. View your /etc/motd file.
  2. Configure sshd to display a message prior to logging in, or to suppress the display of the system MOTD afterwards.

More information

motd(5), login.conf(5), gettytab(5), sshd_config(5)