LX0-104 · Question #488
Which of the following commands can be used to change a user's account aging information? (Select THREE).
The correct answer is A. usermod B. passwd D. chage. The usermod, passwd, and chage commands can all be used to modify different aspects of a user's account aging information.
Question
Options
- Ausermod
- Bpasswd
- Cchattr
- Dchage
- Echsh
How the community answered
(29 responses)- A90% (26)
- C7% (2)
- E3% (1)
Why each option
The usermod, passwd, and chage commands can all be used to modify different aspects of a user's account aging information.
The usermod command allows administrators to modify various attributes of a user account, including password aging settings like password expiry date, minimum/maximum days between changes, and warning periods.
The passwd command, in addition to letting users change their own password, can be used by root to set password aging parameters such as the account expiration date or password last changed date.
chattr is used to change file attributes on a Linux filesystem (e.g., immutable, append-only), not user account attributes.
The chage command (change age) is specifically designed and dedicated to controlling and displaying user password aging information, including setting the last change date, minimum/maximum password age, warning period, and account expiration.
chsh is used specifically to change a user's login shell, not any password or account aging information.
Concept tested: 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.