Re: AIDE problems
On Wed, Feb 11, 2004 at 09:39:27PM -0500, Adam Aube wrote:
> On Wednesday 11 February 2004 12:49 pm, Keith Nasman wrote:
> > When my cronjob is run, it reports that it could not access
> > /var/lib/aide.db.
>
> > Here are what I think the relative lines are in /etc/cron.daily/aide
>
> > CONFFILE="/floppy/aide/aide.conf"
> > DATABASE=`grep "^database=file:/" $CONFFILE | head -1 | cut -d: -f2`
> > [ -z "$DATABASE" ] && DATABASE="/var/lib/aide/aide.db"
>
> The -z test returns true if the variable being tested is unset. The fact
> that DATABASE is getting the default value indicates that the script is
> having problems reading your configuration file.
>
> Are you mounting the floppy drive via autofs (or similar)? If not, are you
> ensuring the floppy is mounted before the script gets run? What happens
> if you run this script from the command line?
>
> Adam
>
running, "aide --config=/floppy/aide/aide.conf --check" from the
command line produced normal results
running /etc/cron.daily/aide reports "Couldn't open file
/var/lib/aide/aide.db for reading" in my email
renaming /floppy/aide/aide.db to something else and running "aide
--config=/floppy/aide/aide.conf --check" reports "Couldn't open file
/floppy/aide/aide.db for reading" and running /etc/cron.daily/aide
reports "Fatal error: The AIDE database does not exist!This may mean
you haven't created it, or it may mean that someone has removed it."
I have this same setup on another server except I don't have the conf
file on the floppy.
Here's a diff of the /etc/cron.daily/aide file from the two servers:
vapor:/floppy/aide# diff /etc/cron.daily/aide /home/keith/aide
6c6
< CONFFILE="/floppy/aide/aide.conf"
---
> CONFFILE="/etc/aide/aide.conf"
The "other" server runs just fine with the /var/lib/aide/aide.db file
on the floppy. I even changed /etc/cron.daily/aide to point CONFFILE
to /floppy/aide/aide.conf and it runs fine.
After that I thought it was something to do with a floppy so I created
a new one to no avail. This is truly bizarre.
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: