Debian

[How To] Find the current working shell

shell image

Sometimes working from command line might require to know which shell you are currently using. To find out the current working shell, below steps will be helpful: Try below command first: ps -p $$ Output: PID TTY TIME CMD 2248 pts/8 00:00:00 bash Another command which also works on MAC OS and other Linux distributions: echo $0 Output: -bash The …

Read More »

[How To] Fix Shell Shock Bash vulnerability Linux

shell image

A vulnerability Shell Shock CVE-2014-6271) was discovered on September 24th, in the Bash shell on Linux/Unix based servers. Overview GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of environment variables, which allows remote attackers to write to files or possibly have unknown other impact via a crafted environment, as demonstrated by vectors …

Read More »

[How To] Clear bash history in Linux

shell image

Sometimes, sensitive commands are present in your server bash history. Another user logging in the server will be able to access history of your commands as Linux stores command in the .bash_history file of the user. To delete / clear the bash history of a user, execute following command: history -c && history -w The above command will clear bash …

Read More »

[How to ] Fix OpenSSL for Heartbleed Vulnerability

openssl heartbleed image

As you are all aware of the latest OpenSSL vulnerability termed as "Heartbleed", many blogs are providing information what it is and how does it affects. I am going to focus on fixing the OpenSSL Heartbleed vulnerability in this post. Which OpenSSL versions are affected? The OpenSSL version 1.0.1 is vulnerable except version 1.0.1g. Other versions like 1.0.0, 0.9.x are …

Read More »

LFD Excessive Resource Usage Alerts

Linux logo

The LFD service sometimes send excessive resource usage alerts as below: Time: Tue Nov 19 09:41:10 2013 +0530 Account: xxxxxx Resource: Virtual Memory Size Exceeded: 205 > 200 (MB) Executable: /usr/bin/php Command Line: /usr/bin/php /home/xxxxxx/public_html/index.php PID: 24933 (Parent PID:22578) Killed: No The above alerts are received when a process utilizes more than the memory defined in the CSF configuration file …

Read More »

[How To] Install Iptux on Linux

iptux logo

Iptux is a free IP messenger application which can be used in internal network for chatting and file sharing purpose. In this tutorial, we are going to see how to install Iptux using source and utilities like yum,apt-get,dpkg. To install Iptux on Ubuntu/Fedora/CentOS/RHEL using source: 1) Download the source from Google Code or Mediafire 2) Extract the archive. 2) Go to …

Read More »