XK0-005 · Question #775
XK0-005 Question #775: Real Exam Question with Answer & Explanation
The correct answer is A: The logcollect account needs to be unlocked.. {"question_number": 1, "question": "A Linux administrator is updating the password for the logcollect account...", "correct_answer": "A", "explanation": "The administrator first ran 'passwd -l logcollect', which LOCKS the account by prefixing the password hash with '!' in /etc/sh
Question
A Linux administrator is updating the password for the logcollect account. The administrator issues the following commands: #passwd -l logcollect #passwd logcollect The administrator receives a message that the password cannot be modified. Which of the following is most likely the issue?
Options
- AThe logcollect account needs to be unlocked.
- BThe logcollect account is managed by an LDAP provider.
- CThe logcollect account must set the password.
- DThe logcollect account is configured for nologin.
Explanation
{"question_number": 1, "question": "A Linux administrator is updating the password for the logcollect account...", "correct_answer": "A", "explanation": "The administrator first ran 'passwd -l logcollect', which LOCKS the account by prefixing the password hash with '!' in /etc/shadow. When a locked account's password is subsequently changed with 'passwd logcollect', the system rejects the change because the account is locked. The fix is to unlock the account first using 'passwd -u logcollect' before attempting to set a new password. The other options are distractors: LDAP-managed accounts would produce a different error, nologin affects shell access not password changes, and the account itself cannot run passwd on its own account in this context.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.