CompTIA Linux+ (XK0-004) — Question 168
A user has been locked out of an account due to too many failed password attempts. Which of the following commands will unlock the user's account?
Answer options
- A. pam_tally2 --user=user --reset
- B. passwd -u user -G root
- C. usermod -u user -G root
- D. chage -1 user=user --reset
Correct answer: B
Explanation
The correct command is 'passwd -u user -G root', as it specifically unlocks the user account by modifying the password status. The other options either do not correctly address unlocking the account or are not valid commands for this purpose.