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

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.