LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2022, 06:52 AM   #1
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Rep: Reputation: Disabled
AIDE


Hi All,


Code:
System: Kernel: 5.13.0-39-generic x86_64 bits: 64 Desktop: Xfce 4.16.0 
           Distro: Ubuntu 21.10 (Impish Indri) 

Aide 0.17.3
AIDE installed from apt.

Code:
dpkg -l |g aide
ii  aide                                          0.17.3-4ubuntu0.1                          amd64        Advanced Intrusion Detection Environment - static binary
ii  aide-common                                   0.17.3-4ubuntu0.1                          all          Advanced Intrusion Detection Environment - Common files

I am not sure if anybody still uses AIDE, I used in the past and everything was straightforward. For some reasons this time I have some issues and I hope someone knows something and can identify this behaviour.
This is default conf. Creating aide.db takes 241'6" and but when I launch any aide command with I received an error like below.

I purged and reinstalled few times but this behaviour persisted.

Code:
# aideinit -y
Running aide --init...
WARNING: get_file_status: lstat() failed for /run/user/1000/doc: Permission denied
WARNING: get_file_status: lstat() failed for /run/user/1000/gvfs: Permission denied
Start timestamp: 2022-04-10 18:11:15 -0400 (AIDE 0.17.3)
AIDE initialized database at /var/lib/aide/aide.db.new

Number of entries:	913979

---------------------------------------------------
The attributes of the (uncompressed) database(s):
---------------------------------------------------

/var/lib/aide/aide.db.new
...................................................
...................................................

End timestamp: 2022-04-10 22:12:21 -0400 (run time: 241m 6s)
Overwrite /var/lib/aide/aide.db [yN]? y
You have new mail in /var/mail/root
Code:
# aide --check
  ERROR: missing configuration (use '--config' '--before' or '--after' command line parameter)
You have new mail in /var/mail/root
Code:
# ll
total 205192
drwxr-xr-x   2 root root      4096 Apr 10 17:08 ./
drwxr-xr-x 107 root root      4096 Apr 10 07:24 ../
-rw-------   1 root root 210107699 Apr 10 22:44 aide.db
-rw-------   1 root root         0 Apr 11 07:05 aide.db.new
Thanks so much guys!

Last edited by lattimro; 04-11-2022 at 07:21 AM.
 
Old 04-11-2022, 07:57 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,146

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
What is in /etc/aide/aide.conf?
 
Old 04-11-2022, 08:23 AM   #3
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
What is in /etc/aide/aide.conf?
default config, do you want to post it?
 
Old 04-11-2022, 10:27 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,146

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
You got one error: "ERROR: missing configuration" so either file isn't where it is expected or permissions are wrong.
 
1 members found this post helpful.
Old 04-11-2022, 10:43 AM   #5
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
You got one error: "ERROR: missing configuration" so either file isn't where it is expected or permissions are wrong.
Code:
ll
total 40
drwxr-xr-x   4 root root  4096 Apr 11 09:32 ./
drwxr-xr-x 199 root root 12288 Apr 10 16:42 ../
-rw-r--r--   1 root root  6802 May 13  2021 aide.conf
drwxr-xr-x   2 root root 12288 Mar  7 20:15 aide.conf.d/
drwxr-xr-x   2 root root  4096 Mar  7 20:14 aide.settings.d/

Code:
aide --init --config=/etc/aide/aide.conf
  ERROR: /etc/aide/aide.conf:145: 'verbose' option is no longer supported, use 'log_level' and 'report_level' options instead (see man aide.conf for details) (line: '!/var/spool/.*')

Code:
139
140 # Ignore logs
141 !/var/lib/pacman/.*
142 !/var/cache/.*
143 !/var/log/.*
144 !/var/run/.*
145 !/var/spool/.*
146

Last edited by lattimro; 04-19-2022 at 02:02 PM.
 
Old 10-27-2023, 04:35 AM   #6
p1r4t3
LQ Newbie
 
Registered: Oct 2023
Posts: 1

Rep: Reputation: 0
Hello,

I'm looking to keep a trace all the files copied to a USB key, I came accross AIDE.

My first question is : Is it the best tool to do this ?

If it's the case, @lattimro, do you manage to fix your problem ? I had the same error, but I didn't wait long enough for the command to finish

I saw that you had to wait more than 4 hours. I re run the command, I'm currently waiting...

Thanks
 
Old 10-30-2023, 08:48 PM   #7
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by p1r4t3 View Post
Hello,

I'm looking to keep a trace all the files copied to a USB key, I came accross AIDE.

My first question is : Is it the best tool to do this ?

If it's the case, @lattimro, do you manage to fix your problem ? I had the same error, but I didn't wait long enough for the command to finish

I saw that you had to wait more than 4 hours. I re run the command, I'm currently waiting...

Thanks
Yes, I remember I waited even days. It works on other distributions. On Ubuntu perhaps I disabled it due to errors, I can't remember now. I will install and run it again and let you know.

I installed, the same errors

Last edited by lattimro; 10-31-2023 at 03:28 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can someone post a sample aide.conf file here? For AIDE IDS abefroman Linux - Security 9 04-12-2008 08:18 AM
aide configure can't see libmhash yocompia Linux - Security 14 09-09-2005 04:06 PM
aide conf f1uke Linux - Security 1 07-29-2003 07:38 PM
INFO: installing, configuring and adjusting AIDE for Debian markus1982 Linux - Software 4 05-26-2003 12:18 PM
aide cuckoopint Linux - Security 3 04-22-2003 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration