An employee reports they cannot log in because their account has been locked after multiple unsuccessful password attempts. Which command will restore access by reversing the lock state on their account?
The passwd -u command removes the lock flag set by passwd -l, re-enabling password-based authentication. Using usermod -L applies a lock rather than removing one, chage -E changes expiration dates instead of lock state, and passwd -d deletes the password, leaving the account without a password and not addressing the lock flag.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the '-u' flag do in the 'passwd' command?
Open an interactive chat with Bash
What is a typical reason for an account to be locked?
Open an interactive chat with Bash
What is the difference between 'passwd -l' and 'passwd -u'?