Question 600
The engineer proposes this implementation: Define a narrowly scoped sudoers rule with visudo and use sudo for authorized commands. The requirement is: A privileged command should be granted to a named role without distributing the root password. Which technical explanation best supports the proposed action?
Explanation
Correct Answer
sudo can delegate specific commands with auditing rather than requiring shared direct-root credentials. It specifically supports the proposed action of Define a narrowly scoped sudoers rule with visudo and use sudo for authorized commands. for the requirement described.
Incorrect Answers
This explains another Linux operation, namely Use last with suitable time filtering to examine historical login records., where last reads the login history database, unlike who which reports active sessions. It does not explain why Define a narrowly scoped sudoers rule with visudo and use sudo for authorized commands. satisfies the stated condition.
This explains another Linux operation, namely Run ss -lntp or a suitable privileged lsof -i query to map sockets to processes., where Socket inspection associates a bound listener with its PID/executable; discovering the port alone does not identify its owner. It does not explain why Define a narrowly scoped sudoers rule with visudo and use sudo for authorized commands. satisfies the stated condition.
This explains another Linux operation, namely Apply an appropriate ulimit -u or enforced PAM limits policy for process count., where Resource limits constrain the number of permitted processes for a session or account depending on enforcement context. It does not explain why Define a narrowly scoped sudoers rule with visudo and use sudo for authorized commands. satisfies the stated condition.






LPI Level 1 (102-500) Practice Tests