Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save blackknight36/87fcaa788a1e7c82f023719d549df3c2 to your computer and use it in GitHub Desktop.
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.
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