Encrypting MySQLDump

If  you are looking to Encrypt your MySQL database dump for security reasons than you can  use the ccrypt tool  to encrypt your dump.sql file.

Follow the below simple steps to  achieve the database dump encryption and decryption :

  1. Create a  encryption key file as /root/.backup_keyfile and add the password/key in  that file
  2. This keyfile  will be used to  encrypt and decrypt the data [dump.sql file]

Now,  that we have created the encryption  file we just need to  execute the below commands :

      mysqldump --opt  opsview |  ccrypt  -k /root/.encryptkeyfile > opsview.sql


This will encrypt the opsview.sql file and to  decrypt the opsview.sql file use :

[[email protected] ~]# cat opsview.sql | ccrypt -d -k /root/.backup_keyfile > opsview1.sql


This will  decrypt the opsview.sql file, easy  isn’t it 😀



CVE-2014-7169 BASH Shell Shock Vulnerability for Linux & How to fix

I guess by now we all heard about Bash Shell shock vulnerability and how dangerous it could be .

What is CVE-2014-7169 / Shell Shock Vulnerability?

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 involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which setting the environment occurs across a privilege boundary from Bash execution.

NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-6271.

In short Shell Shock vulnerability allows remote attackers to execute arbitrary code given certain conditions, by passing strings of code following environment variable assignments.

The Shell Shock vulnerability  is considered  bigger  than Heartbleed as it’s affecting all  versions of bash  and it’s still unclear from  when and adding to that linux bash is not only running on linux webservers  but other embedded devices as well such as Mac Laptops .


Am I Affected ? 

To test,  if your version of Bash is vulnerable to this , run the below command ::

[email protected][#]  env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for`x'
this is a test

If you get the above output then you are safe.

But,  if you get the below output then you are affected

[email protected][#]  env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
this is a test

How to fix ?

For RedHat/CentOS/Fedora/RPM based OS:
Note:: This is a temporary fix released by Red Hat Security Team. The team is still working on a full fix which is expected to release soon.
[email protected][#] yum upgrade bash
APT-GET: Ubuntu / Debian
sudo apt-get update && sudo apt-get install --only-upgrade bash
External References:








That’s all.




How to setup additional user for Plesk web-stats

If you want to  setup / allow additional  user for Plesk web-stats then follow the below simple steps ::

Go to Plesk >> Domains >> Select the Domain and locate the Protected URL or Password Protect option and then click on Plesk-stat >> Add a new user .

That’s All, easy isn’t it.