In light of this Linux kernel local root vulnerability, I thought I should audit the trustworthiness of users with logins on systems I administer, so I slapped together this script to find users who had a valid shell and an unlocked account.
Disclaimer: I wrote it in bed on a Sunday morning. It may be utter crap.