LFCS · Question #276
Which of the following commands can an administrator use to change a user's password expiry information? (Select THREE).
The correct answer is A. usermod B. passwd D. chage. Administrators can use usermod, passwd, and chage to manage a user's password expiry information.
Question
Options
- Ausermod
- Bpasswd
- Cchattr
- Dchage
- Echsh
How the community answered
(27 responses)- A93% (25)
- C4% (1)
- E4% (1)
Why each option
Administrators can use `usermod`, `passwd`, and `chage` to manage a user's password expiry information.
The `usermod` command can modify various user account attributes, including password expiry settings using options like `-e` (expiration date) and `-f` (account inactive after password expiry).
The `passwd` command, while primarily for changing passwords, can also set password aging parameters like minimum/maximum days between changes, warning period, and inactive days with appropriate options.
The `chattr` command is used to change file system attributes on Linux files, such as making a file immutable, and has no relation to user password expiry.
The `chage` command is specifically designed to change user password aging information, allowing administrators to set the last password change date, expiry, and warning periods.
The `chsh` command is used to change a user's login shell and does not manage any password expiry settings.
Concept tested: User password aging management
Source: https://man7.org/linux/man-pages/man8/usermod.8.html
Topics
Community Discussion
No community discussion yet for this question.