Introduction
In this tutorial we learn how to install checksecurity
on Ubuntu 20.04.
What is checksecurity
checksecurity is:
Checksecurity can periodically do some very basic system security checks:
* check-setuid - scans for insecurely mounted remote file systems,
and tracks changes in setuid programs;
* check-sockets - tracks changes in open ports to detect rogue programs;
* check-passwd - scans for empty or duplicate system accounts;
* check-disfree - scans for mounted filesystems nearing capacity;
* check-iptables-logs - scans logs generated by iptables and look
for intrusion attempts.
Be aware that these minimal set of checks are no substitute for a full
security auditing and integrity checking system.
In addition to these checks you are encourage to install additional packages
(listed in “Recommends”) to provide more information concerning the security
or vulnerability of your system.
Installing the suggested package lockfile-progs can help to prevent
the cron jobs running multiple times if something gets jammed.
There are three methods to install checksecurity
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install checksecurity Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install checksecurity
using apt-get
by running the following command:
sudo apt-get -y install checksecurity
Install checksecurity Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install checksecurity
using apt
by running the following command:
sudo apt -y install checksecurity
Install checksecurity Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install checksecurity
using aptitude
by running the following command:
sudo aptitude -y install checksecurity
How To Uninstall checksecurity on Ubuntu 20.04
To uninstall only the checksecurity
package we can use the following command:
sudo apt-get remove checksecurity
Uninstall checksecurity And Its Dependencies
To uninstall checksecurity
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove checksecurity
Remove checksecurity Configurations and Data
To remove checksecurity
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge checksecurity
Remove checksecurity configuration, data, and all of its dependencies
We can use the following command to remove checksecurity
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge checksecurity
References
Summary
In this tutorial we learn how to install checksecurity
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.