Skip to Content
CentOS 7 Linux Server Cookbook - Second Edition
book

CentOS 7 Linux Server Cookbook - Second Edition

by Jonathan Hobson
January 2016
Beginner
326 pages
9h 5m
English
Packt Publishing
Content preview from CentOS 7 Linux Server Cookbook - Second Edition

Customizing your system banners and messages

In this recipe, we will learn how to display a welcome message if a user successfully logs in to our CentOS 7 system using SSH or console, or opens a new terminal window in a graphical window manager. This is often used to show the user informative messages, or for legal reasons.

Getting ready

To complete this recipe, you will require a minimal installation of the CentOS 7 operating system with root privileges and a console-based text editor of your choice.

How to do it...

  1. To begin, log in to your system using your root user account and create the following new file with your favorite text editor:
    vi /etc/motd
    
  2. Next, we will put in the following content in this new file:
    ############################################### ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering CentOS 7 Linux Server

Mastering CentOS 7 Linux Server

Mohamed Alibi, BHASKARJYOTI ROY
Linux Server Hacks, Volume Two

Linux Server Hacks, Volume Two

William von Hagen, Brian K. Jones

Publisher Resources

ISBN: 9781785887284