Security Administrator Warning Banner Configuration

Editing Files for Displaying Warning Banners on Linux Systems

Question

A security administrator wants to display a warning banner before a user logs in.

Which of the following files must be edited to make this happen?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

https://kerneltalks.com/tips-tricks/how-to-configure-login-banners-in-linux/

The correct answer is B. /etc/issue.

Explanation: When a user logs in to a Linux system, the system typically displays some information before the login prompt. This information is usually contained in one of two files: /etc/issue or /etc/motd.

/etc/issue is the file that is displayed before the login prompt, while /etc/motd is the file that is displayed after the user logs in.

To display a warning banner before the user logs in, the security administrator should edit the /etc/issue file. This file can contain any text that the administrator wants to display, including a warning banner.

The other files listed in the answer choices are not relevant to displaying a warning banner before a user logs in:

A. /etc/services - This file contains information about the network services that are available on the system.

C. /etc/hosts - This file contains mappings between IP addresses and hostnames.

D. /etc/motd - This file is displayed after the user logs in and can contain any text that the administrator wants to display.