Discussion:
How to use exclude directory or file
Steve Grubb
2018-05-11 13:55:25 UTC
Permalink
Hello,
I am trying to exclude a directory and all of its sub-directories and
contents from being audited.
I used this link https://access.redhat.com/solutions/416863
-a never,exclude -F path=/root/test
Have you tried -a always,exclude -F path=/root/test ?

-Steve
However, I am still getting audits from scripts generating files within
this path.
Can you suggest a proper configuration for excluding a directory along with
its sub-directories and contents.
We are on RHEL 6.9 and currently our audit version is
: audit-2.4.5-3.el6.x86_64
Thanks for your support!
George Sarker.
George Sarker
2018-05-11 13:46:27 UTC
Permalink
Hello,

I am trying to exclude a directory and all of its sub-directories and
contents from being audited.

I used this link https://access.redhat.com/solutions/416863

I generated this syntax :

-a never,exclude -F path=/root/test

However, I am still getting audits from scripts generating files within
this path.

Can you suggest a proper configuration for excluding a directory along with
its sub-directories and contents.

We are on RHEL 6.9 and currently our audit version is
: audit-2.4.5-3.el6.x86_64

Thanks for your support!

Continue reading on narkive:
Loading...