Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: AIDE will not work!

  1. #1
    Join Date
    Jun 2008
    Location
    Des Moines area (Iowa)
    Beans
    171
    Distro
    Ubuntu

    Angry AIDE will not work!

    I am trying to run the "aide" program, but I have a very aggravating situation that is preventing it.

    Whenever I try to run it, (trying to "check",) whether as root or another user, I am presented with:
    Code:
    Couldn't open file /var/lib/aide/please-dont-call-aide-without-parameters/aide.db for reading
    or
    Code:
    Extra parameters given
    I have tried many commands, including:
    Code:
    aide -C
    aide --check
    aide -V
    aide -V 20
    aide --verbose
    aide -C -V
    aide -C -V 20
    aide --check --verbose
    aide --check --verbose=20
    aide -C -r stdout
    aide --check -r stdout
    aide -V -r stdout
    aide -V 20 -r stdout
    aide --verbose -r stdout
    aide -C -V -r stdout
    aide -C -V 20 -r stdout
    aide --check --verbose -r stdout
    aide --check --verbose=20 -r stdout
    aide -C --report=stdout
    aide --check --report=stdout
    aide -V --report=stdout
    aide -V 20 --report=stdout
    aide --verbose --report=stdout
    aide -C -V --report=stdout
    aide -C -V 20 --report=stdout
    aide --check --verbose --report=stdout
    aide --check --verbose=20 --report=stdout
    The commands in bold give the second error; all the rest of the commands give the first error.


    This is really irritating; I'm questioning if I will be able to finish my project in time.

    Any help would definitely be appreciated!
    I'm just a geek...

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: AIDE will not work!

    I have not used AIDE. See if these links help :

    http://www.linux.com/feature/113919

    http://www.securityfocus.com/infocus/1424
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #3
    Join Date
    Mar 2009
    Location
    Holland
    Beans
    43
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: AIDE will not work!

    I once got that problem on FreeBSD, The problem was that the database file was initialized but not filled.

    I replaced it with an other version and it worked perfectly. What are the permissions of the .db file? Maby the installer, updater is still locking it because it's updating?
    - Security is like a brake, it can slow you down but it'll also give you the faith to speed up higher then before. -

  4. #4
    Join Date
    Jan 2007
    Beans
    7

    Re: AIDE will not work!

    Get the same think here when run the commands manually.
    sudo /etc/cron.daily/aide does work ok.

    will do more investigation later.

  5. #5
    Join Date
    Mar 2009
    Beans
    1

    Re: AIDE will not work!

    I had the same issue, and about lost my mind trying to find the answer.

    These two links helped a ton:

    http://fixunix.com/debian/121980-aide.html

    http://svn.debian.org/wsvn/pkg-aide/...ile&rev=0&sc=0

    I'm still working with this so I haven't gotten it completely figured out yet. Good luck.

  6. #6
    Join Date
    Oct 2007
    Beans
    23

    Re: AIDE will not work!

    Try "aide.wrapper" instead of "aide", so "aide.wrapper -i" or even "aideinit".

  7. #7
    Join Date
    Jun 2007
    Beans
    1

    Re: AIDE will not work!

    Hi,
    I have got the same error when run aide first time before init database. The command /etc/cron.daily/aide takes a long time but fix the problem. AIDE built the database.

    Link http://www.debuntu.org/intrusion-detection-with-aide

  8. #8
    Join Date
    Jun 2008
    Location
    Des Moines area (Iowa)
    Beans
    171
    Distro
    Ubuntu

    Exclamation Re: AIDE will not work!

    Finally I got a chance to try this again!

    I have tried everything listed in this thread, except for the cron job. I don't want it to completely automate the whole process; I want to learn how to do it manually.
    Here are some attempts:
    Code:
    root@Team-3:~# aide --init
    Couldn't open file /var/lib/aide/please-dont-call-aide-without-parameters/aide.db.new for writing
    root@Team-3:~# aide -i
    Couldn't open file /var/lib/aide/please-dont-call-aide-without-parameters/aide.db.new for writing
    root@Team-3:~# aideinit 
    Running aide --init...
    34:syntax error:(
    34:Error while reading configuration:(
    Configuration error
    AIDE --init return code 17; see /var/lib/aide/aide.db.new for details
    root@Team-3:~# aide.wrapper 
    34:syntax error:(
    34:Error while reading configuration:(
    Configuration error
    root@Team-3:~# aide.wrapper -i
    34:syntax error:(
    34:Error while reading configuration:(
    Configuration error
    root@Team-3:~# aide.wrapper --init
    34:syntax error:(
    34:Error while reading configuration:(
    Configuration error
    And also:
    Code:
    root@Team-3:~# cat /var/lib/aide/aide.db.new
    cat: /var/lib/aide/aide.db.new: No such file or directory
    Any other ideas?
    Last edited by computer_freak_8; May 20th, 2009 at 04:25 PM. Reason: Add more.
    I'm just a geek...

  9. #9
    Join Date
    Aug 2010
    Beans
    6

    Re: AIDE will not work!

    After following the links on this page I managed to get it working for me.
    After installing aide
    Code:
    #sudo apt-get install aide
    I ran
    Code:
    sudo touch /var/lib/aide/aide.db
    sudo chmod 755 /var/lib/aide/aide.db
    and finally
    Code:
    sudo aide --config=/usr/share/aide/config/aide/aide.conf --check
    Thanks,
    Pev
    Last edited by Pev; September 1st, 2010 at 06:28 AM. Reason: Simplifying instructions

  10. #10
    Join Date
    Dec 2010
    Beans
    1

    Re: AIDE will not work!

    Regarding the post from Pev
    "I ran
    Code:
    sudo touch /var/lib/aide/aide.db
    sudo chmod 755 /var/lib/aide/aide.db"

    making the file executable and readable by world and group is not advisable from a security point of view

    I recommend leaving it as
    sudo chmod 600 /var/lib/aide/aide.db
    to keep defence in depth

    see the NIST guidelines on hardening redhat enterprise - it discusses setting up aide securely that also works with ubuntu

    R

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •