How To Patch and Protect Linux Kernel Stack Clash Vulnerability CVE-2017-1000364

The Linux Kernel Stack Clash vulnerability (CVE-2017-1000364) is a security issue that affects the Linux kernel. To protect against this vulnerability, you will need to patch your Linux system by installing the appropriate security updates. The exact steps to patch and protect against this vulnerability will depend on the specific distribution of Linux you are … Read more

How to run two or multiple networks instance of Tinc VPN on same box

Tinc VPN is a virtual private network (VPN) software that allows you to create a secure network between multiple computers. To run two or more network instances of Tinc VPN on the same machine, you will need to perform the following steps for each network: Create separate directories for each network: mkdir /etc/tinc/network1 mkdir /etc/tinc/network2 … Read more

How to find and delete directory recursively on Linux or Unix-like system ?

To find and delete a directory recursively on a Linux or Unix-like system, you can use the rm command with the -r (or –recursive) option. For example, to delete the directory /path/to/directory, you would run the following command: rm -rf /path/to/directory Note: The -f option (or –force) is used to ignore nonexistent files and suppress … Read more

How to install and use Monit on Ubuntu/Debian Linux server as process supervision tool

Monit is a process supervision tool that can be used to monitor and manage the status of various services and processes on a Linux server. Here’s how to install and use Monit on Ubuntu/Debian: Install Monit using the package manager: sudo apt-get update sudo apt-get install monit Configure Monit by editing the configuration file at … Read more

How to configure automated security updates on Debian automatically

Debian provides a package called “unattended-upgrades” to automate security updates. Here’s how you can configure it: Install the unattended-upgrades package: sudo apt-get install unattended-upgrades Open the configuration file: sudo nano /etc/apt/apt.conf.d/50unattended-upgrades Enable the automatic upgrade of security updates: Unattended-Upgrade::Allowed-Origins { “${distro_id}:${distro_codename}-security”; // “${distro_id}:${distro_codename}-updates”; // “${distro_id}:${distro_codename}-proposed”; // “${distro_id}:${distro_codename}-backports”; }; Enable email notifications for upgrades: Unattended-Upgrade::Mail “root”; … Read more