CompTIA Linux+ (XK0-004) — Question 101
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?
Answer options
- A. /etc/services
- B. /etc/issue
- C. /etc/hosts
- D. /etc/motd
Correct answer: B
Explanation
The correct answer is B, as the /etc/issue file is specifically used to display a message before the login prompt. The other options do not serve this purpose: /etc/services is for network services, /etc/hosts is for mapping hostnames to IP addresses, and /etc/motd is displayed after a user logs in, not before.