ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 287 - XK0-005 discussion

Report
Export

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

A.
Creating the /etc/nologin file
Answers
A.
Creating the /etc/nologin file
B.
Creating the /etc/nologin.allow file containing only a single line root
Answers
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
Answers
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
Answers
D.
Ensuring that /etc/pam.d/sshd includes account sufficient pam_nologin.so
Suggested answer: A

Explanation:

This file prevents any non-root user from logging in to the system, regardless of the authentication method. The contents of the file are displayed to the user before the login is terminated.This can be useful for system maintenance or security reasons12.

asked 02/10/2024
Wallace Davison
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first