XK0-004 · Question #442
A Linux administrator needs to configure a user account to notify the user ten days before the password will expire. Which of the following commands would BEST accomplish this task?
The correct answer is A. chage. This question tests knowledge of the correct Linux command for configuring password aging warning periods on a user account.
Question
A Linux administrator needs to configure a user account to notify the user ten days before the password will expire. Which of the following commands would BEST accomplish this task?
Options
- Achage
- Bvipw
- Cpassword
- Dusermod
How the community answered
(40 responses)- A93% (37)
- B5% (2)
- D3% (1)
Why each option
This question tests knowledge of the correct Linux command for configuring password aging warning periods on a user account.
The chage (change age) command manages all password aging attributes for a Linux user account. Using 'chage -W 10 username' sets the warning period to 10 days, causing the system to notify the user 10 days before their password expires. This data is stored in /etc/shadow and is the standard, purpose-built mechanism for password expiry warnings.
vipw safely edits the /etc/passwd file using a file lock to prevent corruption, but it does not manage password aging or warning settings.
'password' is not a valid Linux command - the correct command is 'passwd', which changes a password but does not configure expiry warning days.
usermod modifies account properties such as shell, home directory, and group membership, but does not provide an option to set the password expiry warning period.
Concept tested: chage command password expiry warning configuration
Source: https://man7.org/linux/man-pages/man1/chage.1.html
Topics
Community Discussion
No community discussion yet for this question.