HostOnNet Blog

Category Archives: Linux

11 Year old Linux Kernal Privilege Escalation vulnerability (CVE-2017-6074)

Recently found vulnerability in Datagram Congestion Control Protocol (DCCP) implementation in Linux kernal allow process running as normal user able to get root access. This vulnerability dates back to 2005. Popular Linux distributions like RedHat, Debian, Ubuntu and SUSE have


LEDE (OpenWRT fork) released v17.01.0 final

LEDE released v17.01.0 final. The LEDE Project (“Linux Embedded Development Environment”) is a Linux operating system based on OpenWrt. It is a complete replacement for the vendor-supplied firmware of a wide range of wireless routers and non-network devices. You can


Error: did not detect an –insecure-registry argument on the Docker daemon

When i installed OpenShift on Ubuntu 16.04, i get following error I edited /etc/default/docker, added line But for some reason, docker will not take this after i restart. This is fixed by editing systemd unit for docker at Find Replace


utf8_mime2text() has new signature, but U8T_CANONICAL is missing

When installing PHP from source, i get following error configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. This is required to compile PHP with IMAP support. Fixed by installing


Xfce 4 Desktop Error xfconfd isn’t running

When login to Xfce Desktop, i get following error Unable to determine failsafe session name. Possible causes: xfconfd isn’t running (D-Bus setup problem); environment variable $XDG_CONFIG_DIRS is set incorrectly (must include “/etc”), or xfce4-session is installed incorrectly. This is due


usermod – modify linux user account

usermod command allow you to change a user account. To change a users shell, run usermod -s /bin/bash USER_NAME


dmidecode – Find Hardware Details

dmidecode shows details about computer hardware. On RHEL/CentOS, you need to install it with Show All Hardware Details Get RAM Details To see installed RAM sizes, run Example [root@server1 ~]# dmidecode -t memory | egrep “^\s+Size” Size: 8192 MB Size:


useradd – create linux user

To create a user, run -d specify the home directory of the user. -s specify the shell used by user. To create a linux user with no SSH/terminal access, run Create a User to run system service Normally system services


IPv6

IPv6 is newer version of IP Address. It is ugly, hard to remember lol To list IPv6 address configured on your computer, run Disable IPv6 On CentOS 7 Edit file Add following Now run Temp Disable IPv6 On reboot IPv6


log

To see how many request a site is getting for a particular hour, run Example keep apache access log for 30 days find most accessed ip from apache log find all ip logged into cpanel