exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 150 discussion

Actual exam question from CompTIA's XK0-004
Question #: 150
Topic #: 1
[All XK0-004 Questions]

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?

  • A. /etc/services
  • B. /etc/issue
  • C. /etc/hosts
  • D. /etc/motd
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GUIboi
Highly Voted 4 years, 6 months ago
B - https://man7.org/linux/man-pages/man5/issue.5.html
upvoted 8 times
Icarus1987
4 years, 3 months ago
B is correct yet I've never heard of /etc/issue. I've read 2 600p books and watched 3 Udemy videos... sigh.
upvoted 4 times
...
...
xeun88
Most Recent 2 years, 9 months ago
/etc/motd is after login /etc/issue is before login. Now go read the question again
upvoted 1 times
...
Ya5
3 years, 1 month ago
Selected Answer: B
etc/issue before login etc/motd after login so we need B here
upvoted 2 times
...
emaildeprueba
3 years, 1 month ago
Selected Answer: B
/etc/issue file content is displayed before the login prompt, and/etc/ MOTD content appears after the user successfully logs on to the system. https://topic.alibabacloud.com/a/the-difference-betweenetcmotd-andetcissue_8_8_31258864.html
upvoted 1 times
...
eastthomas
3 years, 4 months ago
As per: https://kerneltalks.com/tips-tricks/how-to-configure-login-banners-in-linux/ All options are incorrect: "open /etc/sshd/sshd_config file and search for the line #Banner none Here you have to edit the file and write your filename and remove the hash mark. It should look like : Banner /etc/login.warn Login Banners are configured in /etc/ssh/sshd_config: # no default banner path #Banner none
upvoted 1 times
...
certcon
3 years, 7 months ago
its B https://man7.org/linux/man-pages/man5/issue.5.html
upvoted 1 times
...
Sfutrell
4 years, 4 months ago
The answer is /etc/issue https://www.cyberciti.biz/faq/howto-change-login-message/ toroloco, you aren't wrong, however your answer is not an option for this question..
upvoted 3 times
...
Cliff01
4 years, 4 months ago
D. /etc/motd has to be the correct answer - motd -message of the day
upvoted 2 times
Mas511
3 years, 9 months ago
motd is after login. The question is before.
upvoted 2 times
...
...
toroloco
4 years, 5 months ago
the answer should be /etc/login.warn: There are two types of banners you can configure. Banner message to display before user logs in (configure in the file of your choice eg. /etc/login.warn) Banner message to display after the user successfully logged in (configure in /etc/motd)
upvoted 2 times
toroloco
4 years, 5 months ago
the closest one in my opinion will be B as it's worth remembering that anyone (with root access) can edit the content of /etc/issue. Some organisations may do so to present pre-login warnings or disclaimers.
upvoted 1 times
...
...
trusteme
4 years, 6 months ago
/etc/issue it says before login .
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...