LX0-104 · 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 modify a user's password expiry information using the usermod, passwd, or chage commands.
Question
Options
- Ausermod
- Bpasswd
- Cchattr
- Dchage
- Echsh
How the community answered
(70 responses)- A89% (62)
- C7% (5)
- E4% (3)
Why each option
Administrators can modify a user's password expiry information using the `usermod`, `passwd`, or `chage` commands.
The `usermod` command can be used with options like `-e` (expire date) or `-f` (inactive after password expires) to modify a user's password expiry settings.
The `passwd` command, when executed by the root user, allows manipulation of password aging parameters using options such as `-x` (maximum days), `-n` (minimum days), or `-i` (inactive days).
`chattr` is used to change file attributes on a Linux file system (e.g., making a file immutable), and it has no functionality related to user password expiry.
The `chage` command is specifically designed for changing user password aging information, providing detailed control over expiry dates, minimum/maximum days, and warning periods with options like `-E`, `-M`, `-m`, `-W`, and `-I`.
`chsh` is used to change a user's login shell, not their password expiry or aging information.
Concept tested: User password aging and expiry management
Source: https://man7.org/linux/man-pages/man1/chage.1.html
Topics
Community Discussion
No community discussion yet for this question.