How to configure Postfix relayhost (smarthost) to send eMail using an external smptd

To configure Postfix to use an external SMTP server as a relayhost (smarthost), you can use the following steps: Edit the Postfix configuration file: # nano /etc/postfix/main.cf Add or modify the following line: relayhost = smtp.example.com:587 Replace smtp.example.com with the hostname or IP address of your SMTP server and 587 with the port number if … Read more

How to install KVM on Ubuntu 16.04 LTS Headless Server

To install KVM on a headless Ubuntu 16.04 LTS server, you can use the following steps: Verify that your system supports virtualization: # egrep -c ‘(vmx|svm)’ /proc/cpuinfo If the output is 0, your system does not support virtualization. Install the necessary packages: # apt-get update # apt-get install qemu-kvm libvirt-bin bridge-utils Add your user to … Read more

How to force users to use secure passwords on Ubuntu/Debian Linux

To force users to use secure passwords on Ubuntu or Debian Linux, you can use the “pam_cracklib.so” module in PAM (Pluggable Authentication Modules). This module checks the strength of passwords before allowing them to be set. Here are the steps to enable password checks with PAM: Install the “libpam-cracklib” package: # apt-get install libpam-cracklib Edit … Read more

How to create empty file in Linux

You can create an empty file in Linux using the touch command or by using a text editor. Here’s the general process for creating an empty file in Linux: Using touch: You can create an empty file using the touch command and specify the name of the file as an argument: touch [file-name] For example, … Read more

How To Patch and Protect Linux Kernel Zero Day Local Privilege Escalation Vulnerability CVE-2016-5195 [ 21/Oct/2016 ]

To patch and protect the Linux kernel Zero Day Local Privilege Escalation Vulnerability (CVE-2016-5195) from Oct 21, 2016, follow these steps: Check your kernel version: uname -r Update your system: sudo apt-get update && sudo apt-get upgrade Install the latest security patches: sudo apt-get dist-upgrade Reboot your system: sudo reboot Note: The above steps are … Read more