Hi, If you define LOGFILES="/var/log/auth.log /var/log/proftpd/proftpd.log" in > /etc/default/sshguard , the script fails with message "No valid logs to > scan by sshguard, exiting". > > This is because of this line in /etc/init.d/sshguard: > > for logfile in "$LOGFILES"; do [ -r "$logfile" ] && > DAEMON_ARGS="$DAEMON_ARGS -l $logfile" && LOGS=$((LOGS+1)); done > > Fix is to change that line to > > for logfile in $LOGFILES; do [ -r "$logfile" ] && > DAEMON_ARGS="$DAEMON_ARGS -l $logfile" && LOGS=$((LOGS+1)); done >
Thanks to report it. This bug was fixed in sshguard 1.5-3 in unstable. From Debian changelog entry: * Avoid to run incorrectly the for-loop in init script + Thanks for the patch to Alexander Noack However I am a bit busy but I will work on squeeze-backport the next weeks. Kind regards, -- Julián Moreno Patiño .''`. Debian GNU/{Linux,KfreeBSD} : :' : Free Operating Systems `. `' http://debian.org/ `- PGP KEY ID 6168BF60 Registered GNU Linux User ID 488513