Results 1 to 2 of 2

Thread: apache2 and aide

  1. #1

    Default apache2 and aide

    On each reboot aide reports the below files as having changed Mtime and Ctime stamps.

    changed: /etc/apache2/sysconfig.d/global.conf
    changed: /etc/apache2/sysconfig.d/include.conf
    changed: /etc/apache2/sysconfig.d/loadmodule.conf


    I have not noticed a variable in /etc/sysconfig/apache2 that stops this behavior and leaves those as static files, until I want to change them myself.

    Any suggestions?
    I don’t have anything to hide, but I don’t have anything I want to show you either.

  2. #2

    Default Re: apache2 and aide

    In case anyone else wants to monitor their web server configs using aide for changes here was my solution.

    In /etc/aide.conf I added these lines:

    Code:
    ## Removes mtime and ctime
    TimeFiles       = p+i+n+u+g+s+b+sha256+sha512
    
    /etc/apache2/sysconfig.d                TimeFiles
    I am not using virtual hosts since this is just a development server. My assumption is that in a production environment with virtual hosts those files will also have their mtime and ctime modified every time the apache2.service (httpd) is called and would need to be added to the aide.conf file.
    I don’t have anything to hide, but I don’t have anything I want to show you either.

Posting Permissions

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