Inspect an /etc/shadow record.
Identify the value that stores the password's last-change date as days since 1970-01-01.
mei:$6$example:20000:0:99999:7::: Which value is the last-change day count?
The third /etc/shadow field stores the password last-change date as days since the Unix epoch.
Detailed explanation
20000Correct. The third field stores the last-change day count.
Correct. The third field stores the last-change day count.
0Incorrect. The fourth field is the minimum age.
Incorrect. The fourth field is the minimum age.
99999Incorrect. The fifth field is the maximum age.
Incorrect. The fifth field is the maximum age.
7Incorrect. The sixth field is the warning period.
Incorrect. The sixth field is the warning period.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'mei:$6$example:20000:0:99999:7:::' | cut -d: -f3Expected result
20000Key points
- Field 3 is last change
- Field 4 is minimum age
- Field 5 is maximum age
- Field 6 is warning days
Notes
- Environment: POSIX cut / 模擬レコードのみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.