The file /etc/shadow has a couple date fields that are expressed as the number of days since Jan 1, 1970. Is there an easy way using to get a list of users and the calendar date of the last password change, and the expiration?
Ref: man shadow(5)
|
The file Ref: man shadow(5) |
||||
|
|
|
There was an answer that got deleted, while somewhat wrong, did lead me in the correct direction. Using gawk's strftime combined with some arithmetic gives me what I wanted.
|
|||
|
|
|
report password status on the named account
|
|||
|
|
|||
|
|