LFCS · 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 various aspects of a user's account aging information, including password expiration and account validity.
Question
Options
- Ausermod
- Bpasswd
- Cchattr
- Dchage
- Echsh
How the community answered
(25 responses)- A92% (23)
- C4% (1)
- E4% (1)
Why each option
The `usermod`, `passwd`, and `chage` commands can all be used to modify various aspects of a user's account aging information, including password expiration and account validity.
The `usermod` command can modify several user account attributes, including setting the account expiration date (`-e`) and adjusting password aging parameters indirectly or through related options.
The `passwd` command, in addition to allowing users to change their password, also provides options (e.g., `-x`, `-n`, `-w`, `-i`) for administrators to set password aging policies like maximum password age, minimum password age, warning days, and inactive days.
The `chattr` command is used to change file attributes on a Linux filesystem, such as making a file immutable, and has no functionality related to user account or password aging.
The `chage` command (change age) is specifically designed for managing user password aging information, allowing administrators to set the last password change date, minimum and maximum password age, warning period, inactivity period, and the account expiration date.
The `chsh` command is used to change a user's login shell, which is unrelated to account aging information.
Concept tested: User account aging management
Topics
Community Discussion
No community discussion yet for this question.