Skip to content

Instantly share code, notes, and snippets.

@snerpton
Last active October 15, 2019 09:47
Show Gist options
  • Save snerpton/1eca1a82614d7685c00bc9a0ef4d419b to your computer and use it in GitHub Desktop.
Save snerpton/1eca1a82614d7685c00bc9a0ef4d419b to your computer and use it in GitHub Desktop.
Useful UNIX commands
#OSX: Query when a password was last set
dscl . read /Users/<username> | grep --context=3 passwordLastSetTime
#OSX: Set password policy
#https://drpebcak.svbtle.com/managing-local-password-policy-with-pwpolicy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment