I am using Linux aide to watch files that change. There are some files that I do not want to get checked, as they are frequently changed and not important.
/root/.cpanel/datastore/Cpanel::Net::Whois::IP::Cached_109.178.128.244
I want to exclude the files, so I used the following rule in my config file (aide.conf):
!/root/\.cpanel/datastore/Cpanel::Net::Whois::IP::Cached_\d{3}\.\d{3}\.\d{3}\.\d{2,3}$
I tested it with https://regex101.com/ and it matches the file.
AIDE includes the files added to the daily report. Does anyone have any idea why?
I would rather not use rules like !/root/.cpanel/datastore/, since there may be files included that do not follow the pattern and I would like to get notified about them.