LX0-104 · Question #74
Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)
The correct answer is A. usermod B. passwd D. chage. User account aging information, such as password expiration and account validity, can be modified using the usermod, passwd, and chage commands.
Question
Options
- Ausermod
- Bpasswd
- Cchattr
- Dchage
- Echsh
How the community answered
(50 responses)- A88% (44)
- C4% (2)
- E8% (4)
Why each option
User account aging information, such as password expiration and account validity, can be modified using the `usermod`, `passwd`, and `chage` commands.
The `usermod` command, with options like -e (expire date) or -f (inactive days), can modify various user account aging policies.
The `passwd` command, primarily used for changing passwords, also supports options like -x (max days) or -l (lock account) that affect password aging.
The `chattr` command is used to change file attributes on Linux filesystems, not user account aging information.
The `chage` command is specifically designed to change user password expiry information and account aging policies, offering detailed control over these settings.
The `chsh` command is used to change a user's login shell, which is unrelated to account aging.
Concept tested: Linux user account aging management
Source: https://man7.org/linux/man-pages/man8/usermod.8.html
Topics
Community Discussion
No community discussion yet for this question.