diff -r 37f217a8bcce -r 65656789da08 security.d/chk_passwd --- 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 -# Beekmansbos 10 -# 1971 BV IJmuiden -# the Netherlands +# Michiel Broek # # 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;