How to stop and disable auditd on RHEL 7

How to stop and disable auditd on RHEL 7?

Solution Verified - Updated -

Environment

Red Hat Enterprise Linux 7

Issue

Disclaimer: Links contained herein to external website(s) are provided for convenience only. Red Hat has not reviewed the links and is not responsible for the content or its availability. The inclusion of any link to an external website does not imply endorsement by Red Hat of the website or their entities, products or services. You agree that Red Hat is not responsible or liable for any loss or expenses that may result due to your use of (or reliance on) the external site or content.

How to stop and disable auditd on RHEL 7?

Resolution

Disable auditd temporarily (this will disable logging instantly but will not survive a reboot):

auditctl -e0

Disable auditd permanently (this will require a reboot):

systemctl disable auditd

Verification:

[root@dhcp182-79 ~]# auditctl -s
enabled 0     # <----- this means that auditd logging is disabled
failure 1
pid 478
rate_limit 0
backlog_limit 64
lost 0
backlog 0
loginuid_immutable 0 unlocked

Root Cause

auditd documentation

man auditd
(...)
       -e [0..2]
              Set  enabled  flag.  When  0  is passed, this can be used to temporarily disable
              auditing. When 1 is passed as an argument, it will enable auditing. To lock  the
              audit configuration so that it can't be changed, pass a 2 as the argument. Lock‐
              ing the configuration is intended to be the last command in audit.rules for any‐
              one  wishing  this feature to be active. Any attempt to change the configuration
              in this mode will be audited and denied. The configuration can only  be  changed
              by rebooting the machine.
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Setup SSL Tunnel Using Stunnel on Ubuntu
Viewed 425 times since Fri, Sep 28, 2018
Linux - How to monitor CPU usage
Viewed 509 times since Fri, Jun 8, 2018
O’Reilly’s CD bookshelf
Viewed 4549 times since Wed, Jun 27, 2018
How do I add ethtool settings to a network device permanently?
Viewed 1556 times since Mon, May 21, 2018
LVM: Remove a Filesystem / Logical Volume
Viewed 630 times since Sat, Jun 2, 2018
HowTo: Retrieve Email from a POP3 Server using the Command Line
Viewed 490 times since Mon, Feb 18, 2019
Inxi – A Powerful Feature-Rich Commandline System Information Tool for Linux
Viewed 8385 times since Sat, Jun 2, 2018
debian Debian/Ubuntu Linux: Find If Installed APT Package Includes a Fix/Patch Via CVE Number
Viewed 467 times since Sun, Sep 23, 2018
How log rotation works with logrotate
Viewed 1108 times since Fri, Nov 30, 2018
RHEL7 slow ssh login
Viewed 756 times since Tue, Aug 6, 2019