diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/missing-expiration-date | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/missing-expiration-date b/bin/missing-expiration-date new file mode 100755 index 0000000..8a0c7fe --- /dev/null +++ b/bin/missing-expiration-date @@ -0,0 +1,12 @@ +#!/bin/bash + +cd "..$(dirname $PWD)" + +for i in `cat /etc/shadow`; do + login=$(echo $i | cut -d: -f1) + expiration=$(echo $i | cut -d: -f8) + + if [ -z "$expiration" ]; then + echo $login: does not have an expiration date + fi +done |
