exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 266 discussion

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

Which of the following will prevent non-root SSH access to a Linux server?

  • A. Creating the /etc/nologin file
  • B. Creating the /etc/nologin.allow file containing only a single line root
  • C. Creating the /etc/nologin/login.deny file containing a single line +all
  • D. Ensuring that /etc/pam.d/sshd includes account sufficient pam_nologin.so
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
ID77
2 months, 1 week ago
Selected Answer: D
The pam_nologin.so module is used to deny SSH access to non-root users when the /etc/nologin file exists. This file typically indicates that the system is in a maintenance mode or that no non-root user should be allowed to log in.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago