Using the auditd daemon
When we talk about securing a system, this it includes many procedures and auditing the system is one of them. The Linux system has a preinstalled tool named auditd, which is responsible for writing audit records on to the disk.
Getting ready
There are no specific requirements to use auditd on a Linux system.
How to do it...
In this section, we will see how to use auditd, for the purpose of auditing:
- If the tool is not already installed on our Linux distribution, we can install it by running the following command:
apt-get install auditd
- When the package is installed, it also installs a few other tools as part of the installation process. One of the tools installed is
auditctl
which helps in controlling the behavior of the software and also in adding rules.
- We can check the version of the tool by running the following command:
![](https://static.packt-cdn.com/products/9781789138399/graphics/c2d9e460-f74f-4b07-bd9d-9a76d264d510.png)
- When auditd is installed for the first time, it does not have any rules available yet. This can be checked by running the following command:
![](https://static.packt-cdn.com/products/9781789138399/graphics/a8df1309-481d-4506-a283-b8eac5980ed1.png)
- Now, let...