Objective 5: Notify Users on System-related Issues

A key, but difficult to test, skill for Linux sysadmins is the ability to communicate with your system users. Rather than require a face-to-face visit with you to test your communication skills, LPI covers only the system-related resources to help you relay information to your system users.

There are a variety of methods to relay information to your users. For general communication or notices, you may opt to simply send a broadcast email to all users on your system. For the LPI exams, however, you are simply expected to make use of the /etc/issue and /etc/motd files on your server, which notify shell users.

/etc/issue

The /etc/issue file is responsible for the text that appears after a login at the system console. The text that appears when you log in remotely is controlled by /etc/issue.net.

Both issue files are completely text based and can contain anything from a customized system introduction to basic system information or specialized system notifications. The information within these files can be escape sequences to generate relevant system information such as the current date, time, number of system users, kernel release, and even operating system version. Some common options are listed in Table 16-5.

Table 16-5. Common escape characters

Character

Description

\d

Insert the current date.

\m

Insert the architecture identifier of the machine, e.g., i686

\n

Insert the node name of the machine, also known as the hostname. ...

Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.