security.d/chk_passwd

changeset 17
65656789da08
parent 14
59e07bba67cc
child 23
b66522a5726e
--- a/security.d/chk_passwd	Mon Feb 18 19:47:24 2013 +0100
+++ b/security.d/chk_passwd	Wed May 22 13:46:49 2013 +0200
@@ -1,12 +1,9 @@
 #!/bin/bash
 #
 #############################################################################
-# Copyright (C) 2005-2012
+# Copyright (C) 2005-2013
 #   
-# Michiel Broek               <mbse@mbse.eu>
-# Beekmansbos 10
-# 1971 BV IJmuiden
-# the Netherlands
+# Michiel Broek               <mbse at mbse.eu>
 #
 # This file is part of SlackSecCheckScripts.
 #
@@ -102,7 +99,7 @@
 	    printf "\tLogin %s does not have a shell\n", $1;
         if ($7 != "" && ! shells[$7] && $8 !~ /!/ && $8 != "*")
             printf "\tLogin %s does not have a valid shell (%s)\n", $1, $7;
-	if ($7 != "" && shells[$7] && ($8 ~ /!/ && $8 = "*"))
+	if ($7 != "" && shells[$7] && ($8 ~ /!/ && $8 = "*") && ($4 == 100))
 	    printf "\tLogin %s account is locked.\n", $1;
 	if ($8 == "")
 	    printf "\tLogin %s has no password.\n", $1;

mercurial