As root, display the password aging information (last change, expiry, minimum and maximum age, warning period) for the account alice in readable form. Type the complete command.
LPIC-1 Exam 102-500, objective 107. Administrative tasks easy
Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.
It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.
Answer
Type the answer.
Accepted answers
chage -l alicechage --list alicechage -l -- alice
Case sensitive — Linux is, and grading LS as ls would teach a falsehood.
Why
`chage -l USER` prints the aging fields of /etc/shadow as dates and day counts instead of raw numbers. It is the one chage option an ordinary user may run on their own account; every other option requires root. Running chage with no options at all enters an interactive prompt for each field.
Where this comes from
- Cited
- LPI exam objective 107.1
- What it says
- Inspect password aging information for an account.
Practise this
Reading one question is not practice. The trainer will draw a set from objective 107 and space the ones you get wrong.