Services and User Management

A user returns from extended leave and cannot log in. Running passwd -S alice shows a usable password (status P), not a locked one. An earlier ticket shows the account was disabled with chage -E 0 alice. Which command restores access without changing the password?

Show the answer

Correct answerD. chage -E -1 alice

chage -E -1 removes the account expiration date, which re-enables the account. passwd -u and usermod -U only remove the '!' prefix from the password hash, and that lock is not present here, so the expiry still blocks the login. passwd -d would delete the password.