./rkhunter: line 15744: syntax error near unexpected token `('

*Greetings RKHunter list!*

I have been installing RKH on several groups of our servers, and I am
running into a specific problem on a couple of different servers that I
just can not seem to overcome.  These are Centos 4.1.2 servers.

To give an easy run-down of my problem, here are steps I have performed for
a stand-alone installation:
(be aware though that I have tried complete installations and custom
installations as well, with the exact same results)

./installer.sh --layout custom . --install
cd files
./rkhunter --propupd --check --sk

./rkhunter: line 15744: syntax error near unexpected token `('
./rkhunter: line 15744: `                       elif [ -n "`/home/rkh/egrep
-i \"^${APPLICATION}:.* ${RKHTMPVAR}( |$)\" ${DB_PATH}/programs_bad.dat
2>&1`" ]; then'
*[ I then edited ~/files/rkhunter line 15744 and put a backslash before the
( and ) ]*
nano +15744 rkhunter
./rkhunter --propupd --check --sk

./rkhunter: line 17117: syntax error near unexpected token `('
./rkhunter: line 17117: `  Ohhara, Optic Kit (Tux), OSXRK, Oz, Phalanx,
Phalanx2, Portacelo, R3dstorm Toolkit,'

*[ I then edited ~/files/rkhunter line 17117 and 17119 and put a backslash
before the ( and ) ]*
nano +17117 rkhunter
./rkhunter --propupd --check --sk

./rkhunter: line 17998: syntax error near unexpected token `('
./rkhunter: line 17998: `               if [ -z "`echo \"${HASH_FUNC}\" |
egrep '(/filehashsha\.pl Digest::MD5|/filehashsha\.pl .* 1$|shasum -a
1$)'`" ]; then'
*[ I then performed the same action, backslashing the ( and ) at lines
17998 and 18109, then I get the following error ]*
nano +17998 rkhunter
./rkhunter --propupd --check --sk
./rkhunter: line 18672: syntax error: unexpected end of file


Now I realize that backslashing the "(" and ")" is not a solution, and
makes egrep treat the regex differently, I am simply trying to make some
progress here with diagnosing the issue.

I have not been able to find anything in the archives or google searches
pertaining to my issue.  I saw some similar stuff that made me think I had
a problem with egrep, because on the systems I am having problems with
/bin/egrep and /bin/fgrep are sym linked to /bin/grep.   BUT, I grabbed a
real egrep off another server and pointed to it, and still got the same
errors.   I also am thinking it is not an egrep problem because 2 of the
lines I am getting errors on do not contain "egrep" but do have parenthesis
(lines 17117 and 17119).   It seems to be a parenthesis problem, as strange
as that sounds, but why?    Upon finding some other stuff in google about
grep -e vs egrep, I also attempted to change the egrep at line 15744 to
grep -e, but that did not work either...


Any help would be appreciated!

Best Regards,
--Erik
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to