-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Hi Boyd Lynn Gerber
>
> My shell scripting a bit rusty but I got it to work.
> your hack snippet:
I posted it because it works as is for me. I know that on some version os
SUSE Linux people had problems after running the update. This has worked
flawlessly for me on all OpenSUSE versions. SUSE Linux 10.0 and 10.1. So
any one should have been able to just cut between the lines and past it in
a file like 001rkhunter in /etc/cron.daily and it should have just ran and
done the update. The only problem is when a site is down. You get the
error message. rkhunter still works, just the update failed for that day.
The script runs just fine till it hits a site that is down. I never get
the error 2 days in a row. I doubt that this adversily affects rkhunter.
Thanks for your work, but I will stay with my version for SUSE Linux 10.x.
> **************************** Start of Script
> *******************************
> #!/bin/sh
>
> MY_VERSION="`grep -i ^suse /etc/SuSE-release`"
> DBDIR="/share/store/rkhunter/rkhunter/files"
>
>
> if [ -e /usr/local/etc/rkhunter.conf ]; then
> . /usr/local/etc/rkhunter.conf
> else
> exit 1
> fi
>
> /usr/local/bin/rkhunter --update | /bin/mail -s 'rkhunter Daily update
> script' admin
>
> if [ `grep -c "${MY_VERSION}" ${DBDIR}/os.dat` == 0 ]; then
> echo "999:${MY_VERSION}:/usr/bin/md5sum:/bin:" >> ${DBDIR}/os.dat
> fi
>
>
> ***************************** End of script *************************
>
> Cheers
>
> On Wed, 2006-08-16 at 12:54 -0600, Boyd Lynn Gerber wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > > Hello Chuck,
> > > On Tue, 15 Aug 2006, Chuck Amadi Systems Administrator wrote:
> > > > I have create the /etc/cron.daily/rkhunter
> > > Is this cronjob your own concoction or part of SuSE's rpm or a modified
> > > Rootkit Hunter contrib?
> > > > Fatal error: Problem while fetching file
> > >
> > > Doesn't indicate a path issue to me, more like an inaccessable mirror (at
> > > least mirror11 doesn't respond right now).
> > >
> > >
> > > * If you still think it's a path issue I could suggest checking it in
> > > detail by adding a debug flag within the cronjob for 1 run (set -x),
> > > prefix the rkhunter command with "sh -x" as well as adding 2>&1 error
> > > output redirection, this all for one cronjob run (don't run manually).
> > > Output will go to whichever account you configured with MAILTO=.
> > >
> > > If you are sure this isn't your own doing but a flaw in Rootkit Hunter and
> > > you can't find the error and fix it yourself (we do accept patches, TIA)
> > > then please *attach* the output and the cronjob.
> >
> > Below is the job I use. I get a similar error message when a site in the
> > rotation is down, other wise everything works just fine.
> >
> > - ---------------------------Cut-Here------------------------------------
> > #!/bin/sh
> >
> > MY_VERSION="`grep -i ^suse /etc/SuSE-release`"
> >
> > if [ -e /etc/rkhunter.conf ]; then
> > . /etc/rkhunter.conf
> > else
> > exit 1
> > fi
> >
> > /usr/bin/rkhunter --update | /bin/mail -s 'rkhunter Daily update' root
> >
> > if [ `grep -c "${MY_VERSION}" ${DBDIR}/os.dat` -eq 0 ]; then
> > echo "999:${MY_VERSION}:/usr/bin/md5sum:/bin:" >> ${DBDIR}/os.dat
> > fi
> > - ---------------------------Cut-Here------------------------------------
> >
> >
> > - --
> > Boyd Gerber <[EMAIL PROTECTED]>
> > ZENEZ 1042 East Fort Union #135, Midvale Utah 84047
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.2 (GNU/Linux)
> > Comment: For info see http://quantumlab.net/pine_privacy_guard/
> >
> > iD8DBQFE42nhVtBjDid73eYRAiU1AJ4o6sVbfPmXa3QUGhe6UyogrrEMsgCghHPy
> > gbl23xvbiIzjPJwwIfpnLe0=
> > =ogfU
> > -----END PGP SIGNATURE-----
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Rkhunter-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/rkhunter-users
> >
>
- --
Boyd Gerber <[EMAIL PROTECTED]>
ZENEZ 1042 East Fort Union #135, Midvale Utah 84047
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/
iD8DBQFE5Jy9VtBjDid73eYRAh5FAJ9beAiHnBW15CPd5OVXLHEBvZfjnACcDLW8
vyWjrTHZaob/ok3cSaToZ9o=
=DT9c
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rkhunter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rkhunter-users