Question 150
The engineer proposes this implementation: Lock the account password with passwd -l employee and separately assess other authentication paths. The requirement is: A departing employee's interactive password login must be locked immediately while preserving account files for investigation. Which technical explanation best supports the proposed action?
Explanation
Correct Answer
passwd -l prefixes the stored password hash with an invalid marker; it does not by itself disable SSH public-key or other authentication. It specifically supports the proposed action of Lock the account password with passwd -l employee and separately assess other authentication paths. for the requirement described.
Incorrect Answers
This explains another Linux operation, namely Run userdel -r oldsvc with the required permissions and backups., where userdel removes the account records and -r also removes its home and mail spool where supported. It does not explain why Lock the account password with passwd -l employee and separately assess other authentication paths. satisfies the stated condition.
This explains another Linux operation, namely Create an appropriate system account with useradd -r -s /usr/sbin/nologin svcname (path distro dependent)., where A system-account UID allocation and non-login shell reduce interactive access when no shell is needed. It does not explain why Lock the account password with passwd -l employee and separately assess other authentication paths. satisfies the stated condition.
This explains another Linux operation, namely Run getent passwd username., where getent queries the name service switch databases, including configured directory sources where available. It does not explain why Lock the account password with passwd -l employee and separately assess other authentication paths. satisfies the stated condition.






LPI Level 1 (102-500) Practice Tests