Package: aide
Version: 0.10-6.1
Followup-For: Bug #293073
Running aideinit gives the following error after upgrading to this
version of the aide package:
tombstone:~# aideinit
/usr/sbin/aideinit: /var/lib/aide/aide.conf.autogenerated: file not found
I've the same problem as reported, but found that the error message
printed is not really related to the fact that aide won't run.
The real reason is presented in the mail sent to root:
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.
So just a
touch /var/lib/aide/aide.db
will fix the problem.
Priority of this bug can probably be lowered as it's a configuration
issue only.
To avoid confusion, I propose to suppress grep's error message about the
unexisting /var/lib/aide/aide.conf.autogenerated which will indeed be
created on the fly, and to add some more explanation to the email sent
to root.
The following change would do this:
--- /etc/cron.daily/aide2005/02/18 07:37:30 1.1
+++ /etc/cron.daily/aide2005/04/05 08:41:23
@@ -13,7 +13,8 @@
. /etc/default/aide
fi
-DATABASE=`grep ^database=file:/ $CONFFILE | head -1 | cut --delimiter=:
--fields=2`
+# grep shouldn't complain on missing $CONFFILE as it will be created
automagically
+DATABASE=`grep ^database=file:/ $CONFFILE 2/dev/null | head -1 | cut
--delimiter=: --fields=2`
FQDN=`hostname -f`
DATE=`date +at %Y-%m-%d %H:%M`
@@ -30,6 +31,7 @@
(
echo Fatal error: The AIDE database does not exist!
echo This may mean you haven't created it, or it may mean that someone
has removed it.
+ echo If you haven't created it, just execute \touch $DATABASE\ to
get aide working.
) | /usr/bin/mail -s Daily AIDE report for $FQDN $MAILTO
exit 0
fi
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages aide depends on:
ii debconf 1.4.30.11 Debian configuration management sy
ii libc62.3.2.ds1-20GNU C Library: Shared libraries an
ii mailx1:8.1.2-0.20040524cvs-4 A simple mail user agent
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]