LFCS · 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. The usermod, passwd, and chage commands are used to manage a user's account aging information, such as password expiry and inactivity periods.
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 are used to manage a user's account aging information, such as password expiry and inactivity periods.
The `usermod` command can modify various user account attributes, including password aging information like expiration dates and inactivity periods, using options such as `-e` (expire date) and `-f` (inactivity period).
The `passwd` command, in addition to changing a user's password, also has options (e.g., `-x` for maximum password age, `-w` for warning period) to set password aging parameters for a user.
The `chattr` command is used to change file attributes on a Linux file system (e.g., immutable, append-only), not user account aging information.
The `chage` command is specifically designed to change user password aging information, allowing administrators to set password expiry dates, minimum/maximum days between changes, and warning periods.
The `chsh` command is used to change a user's login shell, and it does not manage 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.