File seccheck-2.0-john.patch of Package seccheck
diff -ur seccheck-2.0/security-monthly.sh seccheck-2.0.bnc465939/security-monthly.sh
--- security-monthly.sh 2001-07-01 23:28:01.000000000 +0200
+++ security-monthly.sh 2009-01-14 11:06:07.000000000 +0100
@@ -40,7 +40,7 @@
cat "$OLD1"
-if [ -x /usr/sbin/john -a -x /usr/sbin/unshadow ]; then
+if type -p john >/dev/null && type -p unshadow >/dev/null ; then
echo -e '\nComplete list of user accounts with guessable passwords:'
unshadow /etc/passwd /etc/shadow > $SEC_VAR/passwd
john -show "$SEC_VAR/passwd" | sed -n 's/:.*//p'
diff -ur seccheck-2.0/security-weekly.sh seccheck-2.0.bnc465939/security-weekly.sh
--- security-weekly.sh 2001-07-02 00:30:42.000000000 +0200
+++ security-weekly.sh 2009-01-14 11:07:05.000000000 +0100
@@ -50,7 +50,7 @@
test -z "$MAILER" && MAILER="mail"
# password check
-if [ -x /usr/sbin/john -a -x /usr/sbin/unshadow ]; then
+if type -p john >/dev/null && type -p unshadow >/dev/null ; then
echo > $SEC_VAR/dict
cat /usr/dict/* /var/lib/john/password.lst 2> /dev/null | sort | uniq >> $SEC_VAR/dict
unshadow /etc/passwd /etc/shadow > $SEC_VAR/passwd