Created
April 6, 2016 14:38
-
-
Save blackknight36/87fcaa788a1e7c82f023719d549df3c2 to your computer and use it in GitHub Desktop.
This command will give the date of when the password was last reset.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gawk -F: '{ print $1 ":" strftime("%Y%m%d",86400*$3) ":" strftime("%Y%m%d",86400*$4)}' /etc/shadow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment