LX0-104 · Question #688
Which of the following commands can modify or set the password expiration for a user? (Choose two correct answers.)
The correct answer is A. chage D. passwd. The chage and passwd commands are standard Linux utilities used to manage and configure user password expiration settings.
Question
Options
- Achage
- Bchexpiration
- Cshadowconfig
- Dpasswd
- Euserconf
How the community answered
(40 responses)- A88% (35)
- B3% (1)
- C3% (1)
- E8% (3)
Why each option
The `chage` and `passwd` commands are standard Linux utilities used to manage and configure user password expiration settings.
The `chage` command (change age) is specifically designed to modify user password aging information, including setting the maximum password age, warning period, and account expiration dates.
`chexpiration` is not a standard Linux command used for managing password expiration.
`shadowconfig` is not a standard Linux command for configuring shadow password settings; `/etc/shadow` is the file, but not a command.
The `passwd` command, primarily used for changing user passwords, can also set password aging parameters such as forcing a password change on the next login or locking/unlocking a user's account.
`userconf` is not a standard Linux command for user or password configuration.
Concept tested: Linux user password expiration commands
Source: https://man7.org/linux/man-pages/man1/chage.1.html
Topics
Community Discussion
No community discussion yet for this question.