Linux security alert: Bug in sudo’s get_process_ttyname() [ CVE-2017-1000367...
There is a serious vulnerability in sudo command that grants root access to anyone with a shell account. It works on SELinux enabled systems such as CentOS/RHEL and others too. A local user with...
View ArticleHow to configure Nginx SSL/TLS passthrough with TCP load balancingnixCraft
How do I configure SSL/TLS pass through on Nginx load balancer running on Linux or Unix-like system? How do I load balance TCP traffic and setup SSL Passthrough to pass SSL traffic received at the load...
View ArticleHow to configure Nginx SSL/TLS passthrough with TCP load balancingnixCraft
How do I configure SSL/TLS pass through on Nginx load balancer running on Linux or Unix-like system? How do I load balance TCP traffic and setup SSL Passthrough to pass SSL traffic received at the load...
View ArticleHow to install tinc VPN on Ubuntu Linux 16.04 to secure trafficnixCraft
I have two VPS running in the cloud. The first one is the database, and another one is the web server. I want to secure traffic that flows between private network which is insecure by design and I do...
View ArticleHow to allow root login from one IP address with ssh public keys onlynixCraft
I am using MacOS on the desktop and Ubuntu Linux on the server. I disabled root login over ssh and enabled ssh based public key login. However, I recently added second Ubuntu server. I need to sync...
View ArticleHow to prevent unprivileged users from viewing dmesg command output on...
I want to restrict both normal users and root user inside LXD container "hypervisor" from viewing and using dmesg command output. How do I prevent non-root (unprivileged) Linux users from viewing the...
View ArticleAnsible: Could not find aptitude. Please ensure it is installed Error and...
I am running the 'ansible-playbook -i hostnames upgrade.yml' command but getting an error that read as followsfatal: [db1]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find...
View ArticleHow to prevent sed -i command overwriting my symlinks on Linux or UnixnixCraft
I recently ran a command 'sed -i 's/CONFIG_1/CONFIG_OPT_2/g' /etc/nginx/sites-enabled/*.conf' on a Debian Linux server. However, the sed command destroyed the link and created a regular file in place...
View ArticleHow To Install Linux, Apache, MySQL, PHP (LAMP) Stack on Debian 9...
I am a new user of Debian 9 operating system. Can you tell me how to setup and install LAMP stack on a Debian 9 (Stretch)?
View ArticleHow to upgrade from Debian Linux 8 Jessie to Debian 9 Stretch using command...
How do I upgrade my Debian 8 (Jessie) system to Debian 9 (Stretch) using command line over ssh based session?
View ArticleUbuntu: /dev/xvda2 should be checked for errorsnixCraft
When I log in to my Ubuntu Linux 16.04 LTS AWS cloud server, I get the message on screen: /dev/xvda2 should be checked for errors. I can not run fsck command on /dev/xvda1 because it is mounted. How do...
View ArticleHow to redirect non-www to www HTTP / TLS /SSL traffic on NginxnixCraft
I want ALL cyberciti.biz to go to www.cyberciti.biz for SEO and other reasons. I want ALL HTTP traffic to go to HTTPS. How do I redirect all HTTP/HTTPS non-www (e.g. domain name cyberciti.biz) traffic...
View ArticleHow to run cron job every minute on Linux/UnixnixCraft
I want to run a cron job that should run a specific shell script /home/jobs/sync.cache.sh every minute. How do I use crontab to execute script every minute on Linux or Unix-like system?
View ArticleDownload of The Day: Debian Linux 9 ( Stretch )nixCraft
Debian GNU/Linux version 9.0 stretch has been released ( jump to download ) after many months of constant development and available for download in various media format. Debian 9.0 is a free operating...
View ArticleDownload of The Day: Debian Linux 9 ( Stretch )nixCraft
Debian GNU/Linux version 9.0 stretch has been released ( jump to download ) after many months of constant development and available for download in various media format. Debian 9.0 is a free operating...
View ArticleHow to find out if my Ubuntu/Debian Linux server needs a rebootnixCraft
I use ansible-playbook to update my VMs and bare metal servers hosted in a remote data center. How do I tell, whether the Ubuntu Linux server requires a reboot using the command line over ssh based...
View ArticleHow To Patch and Protect Linux Kernel Stack Clash Vulnerability...
A very serious security problem has been found in the Linux kernel called "The Stack Clash." It can be exploited by attackers to corrupt memory and execute arbitrary code. An attacker could leverage...
View ArticleHow to run two or multiple networks instance of Tinc VPN on same boxnixCraft
How do I use Tinc to create a mesh network of two different VPN on the same server? Is it possible to create multiple VPN tunnels between two hosts using tinc VPN software?
View ArticleHow to find and delete directory recursively on Linux or Unix-like...
I type 'find . -type d -iname foo -delete' command to find the foo directories and delete them. However, I am getting an error message that read as find: cannot delete './hourly.4/data/foo': Directory...
View ArticleHow to find and delete directory recursively on Linux or Unix-like...
I type 'find . -type d -iname foo -delete' command to find the foo directories and delete them. However, I am getting an error message that read as find: cannot delete './hourly.4/data/foo': Directory...
View Article