Created
January 22, 2016 19:19
-
-
Save joeashcraft/1d45a48086ac43124562 to your computer and use it in GitHub Desktop.
list lines from "/etc/passwd" for non-system users
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
#!/bin/bash | |
getent passwd | awk -F':' '{ if ($3 >= '$(awk '/^UID_MIN/ {print $2}' /etc/login.defs)') print }' | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment