Question 630
The engineer proposes this implementation: Create an appropriate /etc/nologin notice where supported and ensure policy checks it. The requirement is: An administrator wants to stop new non-root logins briefly while completing emergency maintenance. Which technical explanation best supports the proposed action?
Explanation
Correct Answer
login-aware services can refuse ordinary logins while allowing privileged maintenance when the nologin marker is honored. It specifically supports the proposed action of Create an appropriate /etc/nologin notice where supported and ensure policy checks it. for the requirement described.
Incorrect Answers
This explains another Linux operation, namely Maintain an approved service baseline and compare current ss -lnt output to it., where A listener inventory reveals unexpected exposed sockets; the service status command alone does not list every bound port. It does not explain why Create an appropriate /etc/nologin notice where supported and ensure policy checks it. satisfies the stated condition.
This explains another Linux operation, namely Disable and stop the unneeded service through systemctl and review any socket activation units., where Stopping and disabling unused services reduces exposed listeners; a socket unit can independently reactivate its service. It does not explain why Create an appropriate /etc/nologin notice where supported and ensure policy checks it. satisfies the stated condition.
This explains another Linux operation, namely Configure host-based allow/deny rules in /etc/hosts.allow and /etc/hosts.deny for an actually wrapper-aware daemon., where TCP wrappers apply only to applications linked or configured to consult them; modern services may not honor these files. It does not explain why Create an appropriate /etc/nologin notice where supported and ensure policy checks it. satisfies the stated condition.






LPI Level 1 (102-500) Practice Tests