From f9289e084cb60cf19e3a51972b448a3ce51306d1 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Sun, 28 Jul 2013 03:13:32 +0200 Subject: [PATCH] Fixed auth.log to be included in the Linux_size function (I had forgotten about that...) --- sshblock2.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sshblock2.sh b/sshblock2.sh index ab9402a..bab49fa 100755 --- a/sshblock2.sh +++ b/sshblock2.sh @@ -2,7 +2,7 @@ ################################################################################ # # -# Copyright (C) 2006 Jack-Benny Persson # +# Copyright (C) 2006-2013 Jack-Benny Persson # # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -20,7 +20,7 @@ # # ################################################################################ -# Version 2.3 +# Version 2.4 # # SSH Block 2 - A script that blocks SSH probing hosts in /etc/hosts.deny # This is version two of SSH Block, wich is a total re-write of the original @@ -155,6 +155,8 @@ Linux_size() B=`ls -l /var/log/messages | awk '{print $5}'` let C=A+B echo $C + elif [ -e /var/log/auth.log ]; then + ls -l /var/log/auth.log | awk '{print $5}' elif [ -e /var/log/secure ]; then ls -l /var/log/secure | awk '{print $5}' elif [ -e /var/log/messages ]; then