LFCS · Question #476
Which commands can you use to change a user's password expiry information? (Choose Three)
The correct answer is A. usermod B. passwd D. chage. To modify a user's password expiry information, administrators can use commands like usermod, passwd, and chage.
Question
Options
- Ausermod
- Bpasswd
- Cchattr
- Dchage
- Echsh
How the community answered
(48 responses)- A85% (41)
- C10% (5)
- E4% (2)
Why each option
To modify a user's password expiry information, administrators can use commands like `usermod`, `passwd`, and `chage`.
The `usermod` command allows administrators to modify various attributes of a user account, including password expiry settings using options like `-e` for the expiration date and `-f` for account inactivity after password expiration.
The `passwd` command, primarily used for changing passwords, also provides options for administrators to set password aging policies such as minimum and maximum password age (`-n`, `-x`) and warning period (`-w`).
The `chattr` command is used to change file system attributes on Linux files, not user account or password expiry information.
The `chage` command (change age) is specifically designed to manage user password expiry information, enabling administrators to set parameters like the last password change date, minimum/maximum password age, warning period, and account expiration date.
The `chsh` command is used to change a user's login shell, which is unrelated to password expiry settings.
Concept tested: Linux user password expiry commands
Source: https://man7.org/linux/man-pages/man8/chage.8.html
Topics
Community Discussion
No community discussion yet for this question.