ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 353 - 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:

The presence of the /etc/nologin file prevents non-root users from logging into the system via SSH or any other login method. Only the root user can log in when this file exists. This file is commonly used to temporarily disable user logins during system maintenance.

asked 09/10/2024
Javier Escobar
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first