How to check list of users in Unix

The password file /etc/passwd contains one line for each user account. The passwd files are the local source of password information. To check the list of users on a Unix-like system, you can use the cut and /etc/passwd command as follows:   $ cut -d: -f1 /etc/passwd The /etc/passwd file contains information about each user on the … Read more

How to patch Meltdown CPU Vulnerability CVE-2017-5754 on Linux

To patch the Meltdown CPU vulnerability (CVE-2017-5754) on a Linux system, you need to install the latest security updates and patches from your Linux distribution vendor. The exact steps to do this will depend on the distribution and version you’re using, but some common methods include using the package manager (e.g. yum, apt-get, dnf, zypper, … Read more

Howto patch Spectre Vulnerability CVE-2017-5753/CVE-2017-5715 on Linux

The Spectre vulnerability (CVE-2017-5753 and CVE-2017-5715) is a hardware-based vulnerability that affects modern microprocessors and can be exploited by attackers to access sensitive information, such as passwords and encryption keys. To patch the Spectre vulnerability on Linux, you will need to install the latest microcode update from your processor vendor and update your operating system. … Read more

FreeBSD Change Hostname without reboot

To change the hostname of a FreeBSD system without rebooting, you can use the hostname command. To set the hostname to “new-hostname”, you can run the following command: hostname new-hostname To make the change permanent, you will need to edit the /etc/rc.conf file and modify the hostname variable. For example: vi /etc/rc.conf # Change the … Read more