Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Creating Logon Messages to Communicate with Users in Linux

Logon messages is a great way to automate communications on a Linux system. These can be used to inform users of upcoming system maintenance and other pertinent system information. In this lab, you will be tasked with creating logon messages for local and remote logins, as well as successful logins. In addition to automated messages, you will need to communicate with active users using the wall command and schedule a shutdown of the host to be performed at a later time.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Apr 29, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Use /etc/issue to Present a Message to Users Logging In Locally Based on the Instructions Provided

    Update /etc/issue to include the name of the operating system, date, and time, and the number of current users using escape characters.

  2. Challenge

    Use /etc/issue.net to Present a Message to Users Logging In Remotely Based on the Instructions Provided
    1. Use a text editor to add the following text to /etc/issue.net: "Warning! This system is for authorized users only. To obtain access, email [email protected]."
    2. Update the Banner path in /etc/ssh/sshd_confi to point to /etc/issue.net, and restart the sshd service.
    3. Test the change by attempting an additional login to the host.
  3. Challenge

    Use /etc/motd to Present a Message to Users Who Have Successfully Logged In Based on the Instructions Provided
    1. Add the following message to /etc/motd:

      "Welcome to server01!

      - Maintenance will occur at 8:00 pm on the last friday of the month. - Local software should be installed in /opt - For elevated permissions email [email protected]"

    2. Validate the change by logging into the host.

  4. Challenge

    Notify Users of Upcoming System Maintenance and Issue a Power-off on the Host to be Performed in 4 Hours from the Current Time
    1. Send a wall message using the text file maintenance.txt in /home/cloud_user (suppress the banner message).
    2. Using the shutdown command, schedule a power-off of the system to take in 4 hours of the current time.
    3. Cancel the shutdown (optional).
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight