LX0-104 · 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. Several commands are available for managing user password expiration settings, allowing administrators to enforce security policies. These commands can modify various password attributes, including the maximum password age, warning period, and account expiration date.
Question
Options
- Ausermod
- Bpasswd
- Cchattr
- Dchage
- Echsh
How the community answered
(26 responses)- A88% (23)
- C8% (2)
- E4% (1)
Why each option
Several commands are available for managing user password expiration settings, allowing administrators to enforce security policies. These commands can modify various password attributes, including the maximum password age, warning period, and account expiration date.
The usermod command can modify several user account attributes, including password expiration settings, using options like -e (expire date) or -f (inactive after password expiration).
The passwd command, when used by the root user or with appropriate permissions, can set a user's password and also modify its expiration information, such as forcing a password change on next login.
The chattr command is used to change file attributes on a Linux filesystem (e.g., making a file immutable), not to modify user account or password expiry information.
The chage command is specifically designed for changing user password expiry information, allowing modification of maximum password age, minimum age, warning period, and account expiration date.
The chsh command is used to change a user's login shell, not their password expiry information.
Concept tested: User password expiry management
Source: https://man7.org/linux/man-pages/man8/usermod.8.html
Topics
Community Discussion
No community discussion yet for this question.