BFD on debian 4 problem starting

jimtsop

Verified User
Joined
Sep 19, 2008
Messages
21
After the installation of bdf I get this error when i try to start it. Could you please help?

-------------------------------------------

server:/usr/local/bfd# bfd -s
BFD version 1.2 <
bfd@r-fx.org>
Copyright (C) 1999-2008, R-fx Networks <
proj@r-fx.org>
Copyright (C) 2008, Ryan MacDonald <
ryan@r-fx.org>
This program may be freely redistributed under the terms of the GNU GPL

/usr/local/bfd/rules/sshd: line 9: /var/log/auth.log: Permission denied
grep: option requires an argument -- f
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/usr/local/bfd/rules/sshd: line 10: /var/log/auth.log: Permission denied
grep: option requires an argument -- f
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/usr/local/bfd/rules/sshd: line 11: /var/log/auth.log: Permission denied
grep: option requires an argument -- f
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/usr/local/bfd/rules/sshd: line 12: /var/log/auth.log: Permission denied
grep: option requires an argument -- f
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/usr/local/bfd/rules/sshd: line 13: /var/log/auth.log: Permission denied


-------------------------------------

In /usr/local/bfd/conf.bfd I've changed AUTH_LOG_PATH="/var/log/secure" to

AUTH_LOG_PATH="/var/log/auth.log"

And same thing in /usr/local/bfd/rules/sshd doing it: LP="/var/log/auth.log"

So my /usr/local/bfd/rules/sshd looks like this:

---------------------------------------------------------------

REQ="/usr/sbin/sshd"
if [ -f "$REQ" ]; then
LP="/var/log/auth.log"
TLOG_TF="sshd"
TRIG="3"
TMP="/usr/local/bfd/tmp"

## SSH
ARG_VAL1=`$TLOGP $LP $TLOG_TF.1 | grep sshd | grep -viw "error: BIND" | sed 's/::ffff://' | grep -vi "invalid" | grep -vi "illegal" | grep -iwf $PATTERN_FILE | awk '{print$11":"$9}' | grep -E '[0-9]+' > $TMP/.sshd`
ARG_VAL2=`$TLOGP $LP $TLOG_TF.2 | grep sshd | grep -viw "error: BIND" | sed 's/::ffff://' | grep -iw "failed password for illegal user" | grep -iwf $PATTERN_FILE | awk '{print$13":"$11}' | grep -E '[0-9]+' >> $TMP/.sshd`
ARG_VAL3=`$TLOGP $LP $TLOG_TF.3 | grep sshd | grep -viw "error: BIND" | sed 's/::ffff://' | grep -iw "Invalid" | grep -iwv "Failed password for illegal user" | grep -iwf $PATTERN_FILE | awk '{print$10":"$8}' | grep -E '[0-9]+' >> $TMP/.sshd`
ARG_VAL4=`$TLOGP $LP $TLOG_TF.4 | grep sshd | grep -viw "error: BIND" | sed 's/::ffff://' | grep -iw "Illegal user" | grep -iwv "Failed password for illegal user" | grep -iwf $PATTERN_FILE | awk '{print$10":"$8}' | grep -E '[0-9]+' >> $TMP/.sshd`
ARG_VAL5=`$TLOGP $LP $TLOG_TF.5 | grep sshd | grep -viw "error: BIND" | sed 's/::ffff://' | grep -iw "Authentication failure" | awk '{print$13":"$11}' | grep -E '[0-9]+' >> $TMP/.sshd`
ARG_VAL=`cat $TMP/.sshd`
fi

----------------------------------------------------------

Do you have any ideas what's going wrong?
 

jimtsop

Verified User
Joined
Sep 19, 2008
Messages
21
But I use root user of course. However my auth.log (like all my other DA servers) has the following info:

-rw-r----- 1 root adm 5.5M 2008-09-30 15:56 auth.log

Do you have any ideas?
 
Last edited:
Top